Skip to content

Instantly share code, notes, and snippets.

@victortolbert
Last active June 6, 2020 12:42
Show Gist options
  • Save victortolbert/7189332fe30c6d5dff33cd37fb774d33 to your computer and use it in GitHub Desktop.
Save victortolbert/7189332fe30c6d5dff33cd37fb774d33 to your computer and use it in GitHub Desktop.
{
"type": "object",
"properties": {
"user": {
"type": "object",
"properties": {
"id": {
"$ref": "#/definitions/positiveInt"
},
"name": {
"type": "string",
"faker": "name.findName"
},
"birthday": {
"type": "string",
"chance": {
"birthday": {
"string": true
}
}
},
"email": {
"type": "string",
"format": "email",
"faker": "internet.email"
}
},
"required": [
"id",
"name",
"birthday",
"email"
]
}
},
"required": [
"user"
],
"definitions": {
"positiveInt": {
"type": "integer",
"minimum": 0,
"minimumExclusive": true
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment