Skip to content

Instantly share code, notes, and snippets.

@piecioshka piecioshka/schema.json
Last active Mar 11, 2019

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", "image"],
"properties": {
"id": {
"chance": {
"guid": {}
}
},
"name": {
"type": "string",
"faker": "commerce.product"
},
"description": {
"chance": {
"paragraph": {
"sentences": 1
}
}
},
"image": {
"chance": {
"url": {
"domain": "api.adorable.io/avatars/100",
"extensions": ["gif", "jpg", "png"]
}
}
}
}
}
}
}
}
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.