forked from OpenInterConnect/IoTDataModels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoic.r.openLevel.json
35 lines (35 loc) · 1.02 KB
/
oic.r.openLevel.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
{
"id": "http://openinterconnect.org/schemas/oic.r.openLevel#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2016 Open Interconnect Consortium, Inc. All rights reserved.",
"title": "Open Level",
"definitions": {
"oic.r.openlevel": {
"type": "object",
"properties": {
"openLevel": {
"type": "integer",
"description": "How open or ajar the entity is"
},
"increment": {
"type": "integer",
"description": "ReadOnly, The step between possible values"
},
"range": {
"type": "array",
"description": "ReadOnly, Lower bound=closed, Upper bound=open",
"items": {
"type": "integer"
}
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "oic.core.json#/definitions/oic.core"},
{"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"},
{"$ref": "#/definitions/oic.r.openlevel"}
],
"required": ["openLevel"]
}