Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[schema: photos]
{
"id": "photos",
"type": "array",
"minItems": 20,
"maxItems": 20,
"items": {
"type": "object",
"required": [
"id",
"createdTime",
"author",
"description",
"imageUrl"
],
"properties": {
"id": {
"chance": {
"guid": {}
}
},
"createdTime": {
"type": "string",
"faker": {
"fake": "{{date.past}}"
}
},
"author": {
"type": "object",
"required": [
"id",
"name",
"avatarUrl"
],
"properties": {
"id": {
"chance": {
"guid": {}
}
},
"name": {
"type": "string",
"faker": {
"fake": "{{name.firstName}} {{name.lastName}}"
}
},
"avatarUrl": {
"type": "string",
"faker": {
"fake": "{{image.avatar}}"
}
}
}
},
"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.