I'm using the json-schema-faker and i'm using it with Faker which allows me to get random "real" format values, like emails, image url etc.
this scheme works well:
{
"type": "object",
"properties": {
"myPattern":{
"type": "string",
"pattern": "pattern1||pattern2"
},
"image": {
"type": "string",
"faker": "image.city"
}
},
"required": [
"myPattern",
"image"
]
}
But what i really wants is that the faker
will get a pattern like the property myPattern
gets.
I've tried some variations but none works.
Some syntax I've tried:
"faker": "image.city||image.food"
"faker": {
"fake": {
"pattern": "image.city||image.food"
}
}
-
"faker": {
"pattern": "image.city||image.food"
}