Last active
June 6, 2020 12:42
-
-
Save victortolbert/7189332fe30c6d5dff33cd37fb774d33 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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