Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
336 changes: 167 additions & 169 deletions docs/static/schemas/draft/2-1-0/application.schema.json

Large diffs are not rendered by default.

132 changes: 62 additions & 70 deletions docs/static/schemas/draft/2-1-0/application.types.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -972,30 +972,27 @@
"minItems": 1,
"uniqueItems": true,
"items": {
"$ref": "#/$defs/on_start/$defs/load_on_start"
"$ref": "#/$defs/on_start/properties/load/oneOf/1"
}
},
{
"$ref": "#/$defs/on_start/$defs/load_on_start"
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Load On Start",
"description": "Identifier for a component or hardware interface to load when the application starts",
"oneOf": [
{
"$ref": "#/$defs/component_identifier"
},
{
"$ref": "#/$defs/hardware_identifier"
}
]
}
]
},
"sequence": {
"$ref": "#/$defs/sequence_event/$defs/start_a_sequence"
}
},
"$defs": {
"load_on_start": {
"title": "Load On Start",
"oneOf": [
{
"$ref": "#/$defs/target_interface/$defs/component_identifier"
},
{
"$ref": "#/$defs/target_interface/$defs/hardware_identifier"
}
]
}
}
},
"sequences": {
Expand Down Expand Up @@ -1510,13 +1507,13 @@
"description": "Identifier for a component, hardware interface or controller to load or unload",
"oneOf": [
{
"$ref": "#/$defs/target_interface/$defs/component_identifier"
"$ref": "#/$defs/component_identifier"
},
{
"$ref": "#/$defs/target_interface/$defs/controller_identifier"
"$ref": "#/$defs/controller_identifier"
},
{
"$ref": "#/$defs/target_interface/$defs/hardware_identifier"
"$ref": "#/$defs/hardware_identifier"
}
]
},
Expand Down Expand Up @@ -1630,69 +1627,64 @@
"description": "Identifier for a component, hardware interface or controller to target with an event",
"oneOf": [
{
"$ref": "#/$defs/target_interface/$defs/component_identifier"
"$ref": "#/$defs/component_identifier"
},
{
"$ref": "#/$defs/target_interface/$defs/controller_identifier"
"$ref": "#/$defs/controller_identifier"
},
{
"$ref": "#/$defs/target_interface/$defs/hardware_identifier"
}
],
"$defs": {
"component_identifier": {
"description": "A component in the application",
"type": "object",
"additionalProperties": false,
"properties": {
"component": {
"$ref": "#/$defs/identifier"
}
},
"required": [
"component"
]
},
"controller_identifier": {
"description": "A controller associated with a particular hardware interface",
"type": "object",
"additionalProperties": false,
"properties": {
"hardware": {
"$ref": "#/$defs/identifier"
},
"controller": {
"$ref": "#/$defs/identifier"
}
},
"required": [
"hardware",
"controller"
]
},
"hardware_identifier": {
"description": "A hardware interface in the application",
"type": "object",
"additionalProperties": false,
"properties": {
"hardware": {
"$ref": "#/$defs/identifier"
}
},
"required": [
"hardware"
]
"$ref": "#/$defs/hardware_identifier"
}
}
]
},
"component_identifier": {
"$ref": "#/$defs/target_interface/$defs/component_identifier"
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Component Identifier",
"description": "A component in the application",
"type": "object",
"additionalProperties": false,
"properties": {
"component": {
"$ref": "#/$defs/identifier"
}
},
"required": [
"component"
]
},
"controller_identifier": {
"$ref": "#/$defs/target_interface/$defs/controller_identifier"
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Controller Identifier",
"description": "A controller associated with a particular hardware interface",
"type": "object",
"additionalProperties": false,
"properties": {
"hardware": {
"$ref": "#/$defs/identifier"
},
"controller": {
"$ref": "#/$defs/identifier"
}
},
"required": [
"hardware",
"controller"
]
},
"hardware_identifier": {
"$ref": "#/$defs/target_interface/$defs/hardware_identifier"
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Hardware Identifier",
"description": "A hardware interface in the application",
"type": "object",
"additionalProperties": false,
"properties": {
"hardware": {
"$ref": "#/$defs/identifier"
}
},
"required": [
"hardware"
]
},
"application_event": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand Down
18 changes: 15 additions & 3 deletions schemas/applications/schema/application.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@
"graph": {
"$ref": "graph.schema.json"
},
"graph_position": {
"$ref": "common/graph_position.schema.json"
},
"graph_position_group": {
"$ref": "common/graph_position_group.schema.json"
},
"hardware": {
"$ref": "hardware.schema.json"
},
Expand All @@ -122,6 +128,12 @@
"sequences": {
"$ref": "sequences.schema.json"
},
"start_a_sequence": {
"$ref": "common/events/start_a_sequence.schema.json"
},
"sequence_object": {
"$ref": "common/events/sequence_object.schema.json"
},
"variables": {
"$ref": "variables.schema.json"
},
Expand Down Expand Up @@ -156,13 +168,13 @@
"$ref": "common/target_interface.schema.json"
},
"component_identifier": {
"$ref": "common/target_interface.schema.json#/$defs/component_identifier"
"$ref": "common/component_identifier.schema.json"
},
"controller_identifier": {
"$ref": "common/target_interface.schema.json#/$defs/controller_identifier"
"$ref": "common/controller_identifier.schema.json"
},
"hardware_identifier": {
"$ref": "common/target_interface.schema.json#/$defs/hardware_identifier"
"$ref": "common/hardware_identifier.schema.json"
},
"application_event": {
"$ref": "common/events/application.schema.json"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Component Identifier",
"description": "A component in the application",
"type": "object",
"additionalProperties": false,
"properties": {
"component": {
"$ref": "identifier.schema.json"
}
},
"required": [
"component"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Controller Identifier",
"description": "A controller associated with a particular hardware interface",
"type": "object",
"additionalProperties": false,
"properties": {
"hardware": {
"$ref": "identifier.schema.json"
},
"controller": {
"$ref": "identifier.schema.json"
}
},
"required": [
"hardware",
"controller"
]
}
61 changes: 3 additions & 58 deletions schemas/applications/schema/common/events/sequence.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,66 +7,11 @@
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/$defs/sequence_object"
"$ref": "sequence_object.schema.json"
}
},
{
"$ref": "#/$defs/sequence_object"
"$ref": "sequence_object.schema.json"
}
],
"$defs": {
"sequence_object": {
"title": "ManageSequenceObject",
"oneOf": [
{
"$ref": "#/$defs/start_a_sequence"
},
{
"title": "Restart A Sequence",
"type": "object",
"additionalProperties": false,
"properties": {
"restart": {
"description": "Name of the sequence to restart",
"type": "string",
"pattern": "^[a-z]([a-z0-9_]?[a-z0-9])*$"
}
},
"required": [
"restart"
]
},
{
"title": "Abort A Sequence",
"type": "object",
"additionalProperties": false,
"properties": {
"abort": {
"description": "Name of the sequence to abort",
"type": "string",
"pattern": "^[a-z]([a-z0-9_]?[a-z0-9])*$"
}
},
"required": [
"abort"
]
}
]
},
"start_a_sequence": {
"title": "Start A Sequence",
"type": "object",
"additionalProperties": false,
"properties": {
"start": {
"description": "Name of the sequence to start",
"type": "string",
"pattern": "^[a-z]([a-z0-9_]?[a-z0-9])*$"
}
},
"required": [
"start"
]
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Manage Sequence Object",
"description": "Start, restart, or abort a sequence",
"type": "object",
"oneOf": [
{
"$ref": "start_a_sequence.schema.json"
},
{
"title": "Restart A Sequence",
"type": "object",
"additionalProperties": false,
"properties": {
"restart": {
"description": "Name of the sequence to restart",
"type": "string",
"pattern": "^[a-z]([a-z0-9_]?[a-z0-9])*$"
}
},
"required": [
"restart"
]
},
{
"title": "Abort A Sequence",
"type": "object",
"additionalProperties": false,
"properties": {
"abort": {
"description": "Name of the sequence to abort",
"type": "string",
"pattern": "^[a-z]([a-z0-9_]?[a-z0-9])*$"
}
},
"required": [
"abort"
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Start A Sequence",
"description": "Identifier of a sequence to start",
"type": "object",
"additionalProperties": false,
"properties": {
"start": {
"description": "Name of the sequence to start",
"type": "string",
"pattern": "^[a-z]([a-z0-9_]?[a-z0-9])*$"
}
},
"required": [
"start"
]
}
Loading