forked from OpenInterConnect/IoTDataModels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
oic.r.door.json
32 lines (32 loc) · 982 Bytes
/
oic.r.door.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
{
"id": "http://openinterconnect.org/schemas/oic.r.door#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2016 Open Interconnect Consortium, Inc. All rights reserved.",
"title": "Door",
"definitions": {
"oic.r.door": {
"type": "object",
"properties": {
"openState" : {
"enum": ["Open","Closed"],
"description": "ReadOnly, The state of the door (open or closed)"
},
"openDuration": {
"type": "string",
"description": "ReadOnly, The time duration the door has been open"
},
"openAlarm": {
"type": "boolean",
"description": "The state of the door open alarm"
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "oic.core.json#/definitions/oic.core"},
{"$ref": "oic.baseResource.json#/definitions/oic.r.baseresource"},
{"$ref": "#/definitions/oic.r.door"}
],
"required": ["openState"]
}