forked from eclipse-thingweb/playground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tm-identification.json
33 lines (33 loc) · 978 Bytes
/
tm-identification.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
{
"title": "tm-identification",
"description": "Thing Model definitions MUST use the keyword @type at top level and a value of type string or array that equals or respectively contains tm:ThingModel.",
"$schema ": "https://json-schema.org/draft/2019-09/schema#",
"is-complex": false,
"type": "object",
"properties": {
"@type": {
"anyOf": [
{
"$ref": "#/definitions/tm_string"
},
{
"type": "array",
"items": {
"type": "string"
},
"contains": {
"$ref": "#/definitions/tm_string"
}
}
]
}
},
"required": ["@type"],
"additionalProperties": true,
"definitions": {
"tm_string": {
"type": "string",
"const": "tm:ThingModel"
}
}
}