Skip to content

Instantly share code, notes, and snippets.

@jmrobles
Created November 22, 2020 19:48
Show Gist options
  • Save jmrobles/a792398464c42a1b91653b1c75ec284a to your computer and use it in GitHub Desktop.
Save jmrobles/a792398464c42a1b91653b1c75ec284a to your computer and use it in GitHub Desktop.
{
"$id": "https://example.com/calendar.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "A representation of an event",
"type": "object",
"required": [ "dtstart", "summary" ],
"properties": {
"dtstart": {
"type": "string",
"description": "Event starting time"
},
"dtend": {
"type": "string",
"description": "Event ending time"
},
"summary": {
"type": "string"
},
"location": {
"type": "string"
},
"url": {
"type": "string"
},
"duration": {
"type": "string",
"description": "Event duration"
},
"rdate": {
"type": "string",
"description": "Recurrence date"
},
"rrule": {
"type": "string",
"description": "Recurrence rule"
},
"category": {
"type": "string"
},
"description": {
"type": "string"
},
"geo": {
"$ref": "http://example.com/geographical-location.schema.json"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment