Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[schema: products]
{
"id": "products",
"type": "object",
"required": ["products"],
"properties": {
"products": {
"type": "array",
"minItems": 50,
"items": {
"type": "object",
"required": ["id", "name", "description", "imageUrl"],
"properties": {
"id": {
"chance": {
"guid": {}
}
},
"name": {
"type": "string",
"faker": "commerce.product"
},
"description": {
"chance": {
"paragraph": {
"sentences": 1
}
}
},
"imageUrl": {
"type": "string",
"faker": {
"fake": "https://picsum.photos/id/{{random.number(1084)}}/300/150/"
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.