-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
238 additions
and
29 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
definition/definition/json-schema/v1/graphics-manifest/extensible.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://superflytv.github.io/tmp-GraphicsDefinition/definition/definition/json-schema/v1/graphics-manifest/extensible.json", | ||
"allOf": [ | ||
{ | ||
"$ref": "https://superflytv.github.io/tmp-GraphicsDefinition/definition/definition/json-schema/v1/lib/common-graphics-schema.json" | ||
}, | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"actions": { | ||
"patternProperties": { | ||
".": { | ||
"type": "object", | ||
"$ref": "https://superflytv.github.io/tmp-GraphicsDefinition/definition/definition/json-schema/v1/lib/action.json" | ||
} | ||
} | ||
}, | ||
"rendering": { | ||
"type": "object", | ||
"properties": { | ||
"isStandardGraphic": { | ||
"type": "boolean", | ||
"const": false | ||
} | ||
}, | ||
"additionalProperties": true, | ||
"required": [ | ||
"isStandardGraphic" | ||
] | ||
} | ||
}, | ||
"additionalProperties": true | ||
} | ||
] | ||
} |
12 changes: 12 additions & 0 deletions
12
definition/definition/json-schema/v1/graphics-manifest/schema.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://superflytv.github.io/tmp-GraphicsDefinition/definition/definition/json-schema/v1/graphics-manifest/schema.json", | ||
"oneOf": [ | ||
{ | ||
"$ref": "https://superflytv.github.io/tmp-GraphicsDefinition/definition/definition/json-schema/v1/graphics-manifest/standard.json" | ||
}, | ||
{ | ||
"$ref": "https://superflytv.github.io/tmp-GraphicsDefinition/definition/definition/json-schema/v1/graphics-manifest/extensible.json" | ||
} | ||
] | ||
} |
135 changes: 135 additions & 0 deletions
135
definition/definition/json-schema/v1/graphics-manifest/standard.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://superflytv.github.io/tmp-GraphicsDefinition/definition/definition/json-schema/v1/graphics-manifest/schema.json", | ||
"allOf": [ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"actions": { | ||
"type": "object", | ||
"description": "Custom Actions that can be invoked on the Graphic.", | ||
"properties": { | ||
"update": { | ||
"description": "The 'update' action is called after the Graphic is loaded, and when new data is pushed to the Graphic.", | ||
"$ref": "https://superflytv.github.io/tmp-GraphicsDefinition/definition/definition/json-schema/v1/lib/action.json" | ||
}, | ||
"play": { | ||
"description": "When the 'play' action is called, the Graphic will animate in.", | ||
"$ref": "https://superflytv.github.io/tmp-GraphicsDefinition/definition/definition/json-schema/v1/lib/action-without-payload.json" | ||
}, | ||
"stop": { | ||
"description": "When the 'stop' action is called, the Graphic will animate out.", | ||
"$ref": "https://superflytv.github.io/tmp-GraphicsDefinition/definition/definition/json-schema/v1/lib/action-without-payload.json" | ||
}, | ||
"step": { | ||
"allOf": [ | ||
{ | ||
"$ref": "https://superflytv.github.io/tmp-GraphicsDefinition/definition/definition/json-schema/v1/lib/action.json" | ||
}, | ||
{ | ||
"type": "object", | ||
"description": "When 'play' action is called, the Graphic will animate in", | ||
"properties": { | ||
"schema": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"const": "object" | ||
}, | ||
"properties": { | ||
"type": "object", | ||
"properties": { | ||
"delta": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"const": "number" | ||
} | ||
} | ||
}, | ||
"goto": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"const": "number" | ||
} | ||
} | ||
}, | ||
"skipAnimation": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"const": "boolean" | ||
} | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"delta", | ||
"goto", | ||
"skipAnimation" | ||
], | ||
"patternProperties": { | ||
"^_.*": {} | ||
}, | ||
"additionalProperties": false | ||
} | ||
}, | ||
"required": [ | ||
"type", | ||
"properties" | ||
], | ||
"additionalProperties": true | ||
} | ||
}, | ||
"required": [ | ||
"schema" | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"patternProperties": { | ||
".": { | ||
"type": "object", | ||
"$ref": "https://superflytv.github.io/tmp-GraphicsDefinition/definition/definition/json-schema/v1/lib/action.json" | ||
} | ||
}, | ||
"required": [ | ||
"update", | ||
"play", | ||
"stop", | ||
"step" | ||
], | ||
"additionalProperties": true | ||
}, | ||
"rendering": { | ||
"type": "object", | ||
"description": "Properties of the Graphic related to the Renderer", | ||
"properties": { | ||
"isStandardGraphic": { | ||
"type": "boolean", | ||
"const": true | ||
}, | ||
"stepCount": { | ||
"type": "number" | ||
} | ||
}, | ||
"required": [ | ||
"isStandardGraphic", | ||
"stepCount" | ||
], | ||
"additionalProperties": true | ||
} | ||
}, | ||
"additionalProperties": true | ||
}, | ||
{ | ||
"$ref": "https://superflytv.github.io/tmp-GraphicsDefinition/definition/definition/json-schema/v1/lib/common-graphics-schema.json" | ||
} | ||
] | ||
} |
27 changes: 27 additions & 0 deletions
27
definition/definition/json-schema/v1/lib/action-without-payload.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://superflytv.github.io/tmp-GraphicsDefinition/definition/definition/json-schema/v1/lib/action-without-payload.json", | ||
"type": "object", | ||
"properties": { | ||
"label": { | ||
"type": "string", | ||
"description": "The name of the action. This is displayed to the user." | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "A longer description of the action. This is displayed to the user." | ||
}, | ||
"schema": { | ||
"description": "This action has no schema, simply set it to null.", | ||
"type": "null" | ||
} | ||
}, | ||
"required": [ | ||
"label", | ||
"schema" | ||
], | ||
"patternProperties": { | ||
"^_.*": {} | ||
}, | ||
"additionalProperties": false | ||
} |
This file contains 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
This file contains 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
This file contains 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