-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommand-concept-dsc.json
More file actions
60 lines (60 loc) · 2.26 KB
/
command-concept-dsc.json
File metadata and controls
60 lines (60 loc) · 2.26 KB
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://example.com/product.schema.json",
"title": "Command Concept Descriptor Schema",
"description": "Describes the structure of the descriptor",
"type": "object",
"required": [
"name",
"descriptor"
],
"properties": {
"name": {
"description": "Name of the concept",
"type": "string"
},
"descriptor": {
"description": "Description of the concept with different modifiers",
"type": "array",
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"modifier": {
"type": "string",
"description": "Modifier of the descriptor. Can be empty, must be unique",
"default": ""
},
"commands": {
"description": "Sequence of commands to the hardware",
"type": "array",
"items": {
"type": "object",
"required": [
"device_name",
"command"
],
"properties": {
"device_name":{
"type": "string",
"description": "Name of a device"
},
"command": {
"type": "string",
"description": "Command. Should be supported be the device."
},
"arguments": {
"type": "array",
"description": "Optional arguments of the command.",
"items": {
"type": "string"
}
}
}
}
}
}
}
}
}
}