forked from OpenInterConnect/IoTDataModels
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoic.basecorecomposite.json
More file actions
68 lines (68 loc) · 2.03 KB
/
oic.basecorecomposite.json
File metadata and controls
68 lines (68 loc) · 2.03 KB
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
60
61
62
63
64
65
66
67
68
{
"id": "http://openinterconnect.org/schemas/oic.r.baseResource#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2016 Open Interconnect Consortium, Inc. All rights reserved.",
"title": "Base and Core Composite Resource",
"definitions": {
"oic.core": {
"properties": {
"rt": {
"type": "string",
"description": "ReadOnly, Resource Type"
},
"if": {
"type" : "array",
"description": "ReadOnly, The interface set supported by this resource",
"items": {
"type": "string",
"enum" : ["oic.if.baseline", "oic.if.ll", "oic.if.b", "oic.if.lb", "oic.if.rw", "oic.if.r", "oic.if.a", "oic.if.s" ]
}
},
"p": {
"type": "integer",
"description": "ReadOnly, Bitmap indicating observable and discoverable"
},
"n": {
"type": "string",
"description": "ReadOnly, Friendly name of the resource"
},
"id": {
"type": "string",
"description": "ReadOnly, Instance ID of this specific resource"
}
}
},
"oic.r.baseresource": {
"properties": {
"value": {
"anyOf": [
{"type": "array"},
{"type": "string"},
{"type": "boolean"},
{"type": "integer"},
{"type": "number"},
{"type": "object"}
],
"description": "The value sensed or actuated by this Resource"
},
"range": {
"type": "array",
"description": "ReadOnly, The valid range for the value Property",
"minItems": 2,
"maxItems": 2,
"items": {
"anyOf": [
{"type": "number"},
{"type": "integer"}
]
}
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "#definitions/oic.core"},
{"$ref": "#/definitions/oic.r.baseresource"}
]
}