Skip to content

Commit 8dd995f

Browse files
authored
Create NodeDescriptor.schema.json
Signed-off-by: Nawder Loswin <umaywant2@duck.com>
1 parent 1db54d0 commit 8dd995f

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://triadicframeworks.org/schemas/rtt/core/v1/NodeDescriptor.schema.json",
4+
"title": "NodeDescriptor",
5+
"type": "object",
6+
"required": ["node_id", "mesh_id", "type", "domain", "capabilities"],
7+
"properties": {
8+
"node_id": { "type": "string", "format": "uuid" },
9+
"mesh_id": { "type": "string", "format": "uuid" },
10+
"type": {
11+
"type": "string",
12+
"enum": ["fixed", "wearable", "mobile", "vehicle"]
13+
},
14+
"domain": { "type": "string" },
15+
"capabilities": {
16+
"type": "array",
17+
"items": { "type": "string" }
18+
},
19+
"location_hint": {
20+
"$ref": "ResonanceFieldSample.schema.json#/properties/location"
21+
},
22+
"firmware": {
23+
"type": "object",
24+
"properties": {
25+
"rtt_core_version": { "type": "string" },
26+
"vendor_variant": { "type": "string" }
27+
}
28+
},
29+
"extensions": {
30+
"type": "object",
31+
"additionalProperties": true
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)