forked from openconnectivityfoundation/devicemodels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoic.devicemap-schema.json
59 lines (59 loc) · 1.56 KB
/
oic.devicemap-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
{
"id": "http://openconnectivity.org/iotdatamodels/schemas/oic.devicemap-schema.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2016 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "OCF Device Map Schema",
"definitions": {
"deviceinformation": {
"type": "object",
"properties": {
"devicename": {
"type": "string",
"description": "Natural language name of the device"
},
"devicetype": {
"type": "string",
"description": "OCF defined device id in the form oic.d.*",
"pattern": "oic.d.*"
}
}
},
"resourceinformation": {
"type": "object",
"properties": {
"resourcetypetitle": {
"type": "string",
"description": "Natural language name of the resource"
},
"resourcetypeid": {
"type": "string",
"description": "OCF defined resource type id in the form oic.r.*",
"pattern": "oic.r.*"
}
}
},
"resourcearray": {
"type": "object",
"properties": {
"resources": {
"type": "array",
"items": {
"$ref": "#/definitions/resourceinformation"
},
"minItems": 1
}
}
},
"devicemapentry": {
"type": "object",
"allOf": [
{"$ref": "#/definitions/deviceinformation"},
{"$ref": "#/definitions/resourcearray"}
]
}
},
"type": "array",
"items": {
"$ref": "#/definitions/devicemapentry"
}
}