diff options
Diffstat (limited to 'timeline.schema.json')
-rw-r--r-- | timeline.schema.json | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/timeline.schema.json b/timeline.schema.json new file mode 100644 index 0000000..a044993 --- /dev/null +++ b/timeline.schema.json @@ -0,0 +1,62 @@ +{ + "$ref": "#/definitions/timeline", + "$schema": "http://json-schema.org/draft-07/schema#", + "definitions": { + "keyframeTypes": { + "enum": [ + "default", + "delay", + "speedChange", + "loop" + ], + "type": "string" + }, + "slide": { + "additionalProperties": false, + "properties": { + "clickThroughBehaviour": { + "enum": [ + "ImmediatelySkip", + "PlayOut" + ], + "type": "string" + }, + "frame": { + "type": "number" + }, + "type": { + "$ref": "#/definitions/keyframeTypes" + } + }, + "required": [ + "frame", + "clickThroughBehaviour", + "type" + ], + "type": "object" + }, + "timeline": { + "additionalProperties": false, + "properties": { + "framecount": { + "type": "number" + }, + "framerate": { + "type": "number" + }, + "slides": { + "items": { + "$ref": "#/definitions/slide" + }, + "type": "array" + } + }, + "required": [ + "slides", + "framecount", + "framerate" + ], + "type": "object" + } + } +}
\ No newline at end of file |