Skip to content

Instantly share code, notes, and snippets.

@singingwolfboy
Created January 23, 2018 09:11
Show Gist options
  • Save singingwolfboy/34b7f540002db444d97458c0f384a19a to your computer and use it in GitHub Desktop.
Save singingwolfboy/34b7f540002db444d97458c0f384a19a to your computer and use it in GitHub Desktop.
{
"type": "object",
"properties": {
"user": {
"description": "The user that is selecting her peers",
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
"email": {
"type": "string"
},
"timeZone": {
"description":
"The user's local timezone. Must be a name from the IANA time zone database.",
"type": "string"
},
"invitationToken": {
"type": ["string", "null"]
}
},
"required": ["firstName", "email", "timeZone"]
},
"users": {
"description": "An array of users",
"type": "array",
"items": { "$data": "user" }
},
"oneOf": [
{"required": ["user"]},
{"required": ["users"]}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment