forked from eclipse-thingweb/playground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tm-compose-submodel.json
33 lines (33 loc) · 1012 Bytes
/
tm-compose-submodel.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-compose-submodel",
"description": "If it is desired to provide information that a Thing Model consists of one or more (sub-)Thing Models, the links entries MUST use the rel:tm:submodel that targets to the (sub-) Thing Models",
"$schema": "http://json-schema.org/draft-07/schema#",
"is-complex": true,
"type": "object",
"properties": {
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/link_element"
}
}
},
"additionalProperties": true,
"definitions": {
"link_element": {
"if": {
"type": "object",
"properties": {
"rel": {
"type": "string",
"const": "tm:submodel"
}
},
"required": ["rel"]
},
"then": {
"const": "tm-compose-submodel=pass"
}
}
}
}