aboutsummaryrefslogtreecommitdiff
path: root/timeline.schema.json
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-05-24 11:26:11 +0200
committerlonkaars <loek@pipeframe.xyz>2021-05-24 11:26:11 +0200
commit5e07224b4bf5010b96f745441b6ee4c213d3fb81 (patch)
tree812132ad39d4a56ae9a1529ceb9c9ff69efe1109 /timeline.schema.json
parent221efd26e676ca86aa6f9058d7f7d082e1b87e94 (diff)
dragging keyframe affects timeline :tada:
Diffstat (limited to 'timeline.schema.json')
-rw-r--r--timeline.schema.json57
1 files changed, 30 insertions, 27 deletions
diff --git a/timeline.schema.json b/timeline.schema.json
index 2d8c6ff..75c5265 100644
--- a/timeline.schema.json
+++ b/timeline.schema.json
@@ -2,6 +2,22 @@
"$ref": "#/definitions/timeline",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
+ "anySlide": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/slide"
+ },
+ {
+ "$ref": "#/definitions/delaySlide"
+ },
+ {
+ "$ref": "#/definitions/speedChangeSlide"
+ },
+ {
+ "$ref": "#/definitions/loopSlide"
+ }
+ ]
+ },
"delaySlide": {
"additionalProperties": false,
"properties": {
@@ -22,7 +38,7 @@
"type": "string"
},
"type": {
- "$ref": "#/definitions/keyframeTypes"
+ "$ref": "#/definitions/slideTypes"
}
},
"required": [
@@ -34,15 +50,6 @@
],
"type": "object"
},
- "keyframeTypes": {
- "enum": [
- "default",
- "delay",
- "speedChange",
- "loop"
- ],
- "type": "string"
- },
"loopSlide": {
"additionalProperties": false,
"properties": {
@@ -70,7 +77,7 @@
"type": "string"
},
"type": {
- "$ref": "#/definitions/keyframeTypes"
+ "$ref": "#/definitions/slideTypes"
}
},
"required": [
@@ -113,7 +120,7 @@
"type": "string"
},
"type": {
- "$ref": "#/definitions/keyframeTypes"
+ "$ref": "#/definitions/slideTypes"
}
},
"required": [
@@ -124,6 +131,15 @@
],
"type": "object"
},
+ "slideTypes": {
+ "enum": [
+ "default",
+ "delay",
+ "speedChange",
+ "loop"
+ ],
+ "type": "string"
+ },
"speedChangeSlide": {
"additionalProperties": false,
"properties": {
@@ -144,7 +160,7 @@
"type": "number"
},
"type": {
- "$ref": "#/definitions/keyframeTypes"
+ "$ref": "#/definitions/slideTypes"
}
},
"required": [
@@ -173,20 +189,7 @@
},
"slides": {
"items": {
- "anyOf": [
- {
- "$ref": "#/definitions/slide"
- },
- {
- "$ref": "#/definitions/delaySlide"
- },
- {
- "$ref": "#/definitions/speedChangeSlide"
- },
- {
- "$ref": "#/definitions/loopSlide"
- }
- ]
+ "$ref": "#/definitions/anySlide"
},
"type": "array"
}