forked from openconnectivityfoundation/devicemodels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoic.resourcemap-schema.json
36 lines (36 loc) · 1.02 KB
/
oic.resourcemap-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
{
"id": "http://openconnectivity.org/iotdatamodels/schemas/oic.devicemap-schema.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "OCF resource Map Schema",
"definitions": {
"resourceInformation": {
"type": "object",
"properties": {
"filename": {
"type": "string",
"description": "the file name where the information is extracted from"
},
"title": {
"type": "string",
"description": "title of the file, extracted from info::title"
}
,
"rt": {
"type": "array",
"description": "resource type array",
"items" : {
"type" : "string",
"pattern": "oic.r.*|oic.wk.*"
},
"minItems" : 1
}
},
"required" : ["filename", "title", "rt"]
}
},
"type": "array",
"items": {
"$ref": "#/definitions/resourceInformation"
}
}