Last active
September 23, 2016 15:28
-
-
Save benjaminsnorris/0ba742ca961b0879efc8 to your computer and use it in GitHub Desktop.
JSON Schema for Event API
This file contains hidden or 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
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"title": "Event Response", | |
"type": "object", | |
"properties": { | |
"id": { | |
"description": "Unique identifier for an event", | |
"type": "integer" | |
}, | |
"title": { | |
"description": "A user-defined title for the event", | |
"type": "string" | |
}, | |
"description": { | |
"description": "Long-form text defined by the user to describe the event", | |
"type": "string" | |
}, | |
"location": { | |
"description": "Long-form text location for the event", | |
"type": "string" | |
}, | |
"startDate": { | |
"description": "Start date and time in RFC 3339 format", | |
"format": "date-time", | |
"type": "string" | |
}, | |
"endDate": { | |
"description": "End date and time in RFC 3339 format", | |
"format": "date-time", | |
"type": "string" | |
}, | |
"groupId": { | |
"description": "Unique identifier for group invited to event", | |
"type": "integer" | |
} | |
}, | |
"required": ["id", "title", "description", "location", "startDate", "groupId"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment