Skip to content

Instantly share code, notes, and snippets.

@alexanderdean
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexanderdean/b05b8fa0f2a1e587d96a to your computer and use it in GitHub Desktop.
Save alexanderdean/b05b8fa0f2a1e587d96a to your computer and use it in GitHub Desktop.
Example JSON Schema for a video_played.json
{
"$schema": "http://json-schema.org/schema#",
"description": "Schema for a video_played event",
"type": "object",
"properties": {
"length": {
"type": "number"
},
"id": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
},
"required": ["length", "id"],
"additionalProperties": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment