Created
October 13, 2017 21:02
-
-
Save jbn/36a9073e2e722c15b23322e30ffa169d to your computer and use it in GitHub Desktop.
Example taken from http://json-schema.org/example/calendar.json, suitable for Medium embedding.
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-06/schema#", | |
"description": "A representation of an event", | |
"type": "object", | |
"required": [ "dtstart", "summary" ], | |
"properties": { | |
"dtstart": { | |
"format": "date-time", | |
"type": "string", | |
"description": "Event starting time" | |
}, | |
"dtend": { | |
"format": "date-time", | |
"type": "string", | |
"description": "Event ending time" | |
}, | |
"summary": { "type": "string" }, | |
"location": { "type": "string" }, | |
"url": { "type": "string", "format": "uri" }, | |
"duration": { | |
"format": "time", | |
"type": "string", | |
"description": "Event duration" | |
}, | |
"rdate": { | |
"format": "date-time", | |
"type": "string", | |
"description": "Recurrence date" | |
}, | |
"rrule": { | |
"type": "string", | |
"description": "Recurrence rule" | |
}, | |
"category": { "type": "string" }, | |
"description": { "type": "string" }, | |
"geo": { "$ref": "http://json-schema.org/geo" } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment