-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapplication.schema.json
176 lines (176 loc) · 5.49 KB
/
application.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
{
"$id": "/2-0-3/application.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "YAML Application Description",
"description": "An AICA application graph description using YAML syntax.",
"type": "object",
"additionalProperties": false,
"properties": {
"schema": {
"title": "Schema",
"description": "The schema version of the application syntax",
"examples": [
"1-4-1",
"draft/2-0-0",
"2-1-0"
],
"type": "string",
"pattern": "^(draft/)?[0-9]+-[0-9]+-[0-9]+$"
},
"dependencies": {
"title": "Dependencies",
"description": "The application dependencies, including the version of AICA Core and any required packages",
"type": "object",
"additionalProperties": false,
"properties": {
"core": {
"title": "Core Version",
"description": "The version of the AICA Core image",
"examples": [
"v3.1.1",
"v4.0.0"
],
"type": "string",
"pattern": "^v[0-9]+\\.[0-9]+\\.[0-9]+$"
},
"packages": {
"title": "Application Packages",
"description": "A list of packages required by the application",
"type": "array",
"uniqueItems": true,
"items": {
"title": "Package Details",
"description": "The specification of a package name and version with optional version constraints",
"type": "object",
"additionalProperties": false,
"properties": {
"package": {
"title": "Package Name",
"description": "The name of the package",
"examples": [
"@aica/components/pose-detection",
"@aica/collections/ur-collection"
],
"type": "string"
},
"version": {
"title": "Package Version",
"description": "The specific version of the package used by the author of the application",
"examples": [
"v1.2.3",
"docker-image://ghcr.io/aica-technology/custom-package:v0.1.0"
],
"type": "string",
"pattern": "^(v[0-9]+\\.[0-9]+\\.[0-9]+)|(docker-image://.*)$"
},
"constraints": {
"title": "Package Version Constraint",
"description": "A range of acceptable package versions that are supported by the application defined by constraints. For more details on syntax, see https://developer.hashicorp.com/terraform/language/expressions/version-constraints",
"examples": [
"1.0.0",
"= 1.0.1",
"> 1.0.2",
">= 1.0.3",
"~> 1.0.4",
"~> 1.1",
">= 1.1.0, < 2.0.0",
">= 2.0.0, != 2.0.1, <= 2.0.2"
],
"type": "string",
"pattern": "^(\\s*(=|!=|<|<=|>|>=|~>)?\\s*([0-9]+\\.[0-9]+(\\.[0-9]+)?)\\s*,?\\s*)+$"
}
},
"required": [
"package",
"version"
]
}
}
},
"required": [
"core"
]
},
"metadata": {
"title": "Application Metadata",
"description": "Metadata used to describe the application for user convenience. This information may be used by parsers to search or sort database applications",
"type": "object",
"properties": {
"name": {
"title": "Application Name",
"description": "The name of the application",
"type": "string"
},
"description": {
"title": "Application Description",
"description": "A brief description of the application",
"type": "string"
},
"tags": {
"title": "Application Tags",
"description": "A collection of user-defined tags that provide additional context for categorizing the application",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"example": [
"motion",
"optimization",
"assembly",
"force control"
]
}
}
}
},
"userdata": {
"title": "User Data",
"description": "This property accepts any data structure and will be ignored by the syntax parser. It can be used to store additional metadata or context about the application for user convenience."
},
"on_start": {
"$ref": "on_start.schema.json"
},
"hardware": {
"$ref": "hardware.schema.json"
},
"components": {
"$ref": "components.schema.json"
},
"conditions": {
"$ref": "conditions.schema.json"
},
"sequences": {
"$ref": "sequences.schema.json"
},
"frames": {
"$ref": "frames.schema.json"
},
"joint_positions": {
"$ref": "joint_positions.schema.json"
},
"graph": {
"$ref": "graph.schema.json"
}
},
"required": [
"schema",
"dependencies"
],
"$defs": {
"events": {
"$ref": "events.schema.json"
},
"identifier": {
"$ref": "common/identifier.schema.json"
},
"log_level": {
"$ref": "common/log_level.schema.json"
},
"parameters": {
"$ref": "common/parameters.schema.json"
},
"signals": {
"$ref": "common/signals.schema.json"
}
}
}