forked from OpenInterConnect/IoTDataModels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
oic.baseResource.json
41 lines (41 loc) · 1.13 KB
/
oic.baseResource.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
{
"id": "http://openinterconnect.org/schemas/oic.r.baseResource.json",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2016 Open Interconnect Consortium, Inc. All rights reserved.",
"title": "Base Resource",
"definitions": {
"oic.r.baseresource": {
"type": "object",
"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": "oic.core.json#/definitions/oic.core"},
{"$ref": "#/definitions/oic.r.baseresource"}
]
}