-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathonem2m.m.liquidlevel.json
More file actions
31 lines (31 loc) · 937 Bytes
/
onem2m.m.liquidlevel.json
File metadata and controls
31 lines (31 loc) · 937 Bytes
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
{
"id": "http://openinterconnect.org/onem2mmapping/schemas/onem2m.m.liquidlevel.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "Liquid Level",
"definitions": {
"onem2m.m.liquidlevel": {
"type": "object",
"properties": {
"liquidLevel": {
"type": "integer",
"description": "The desired level of liquid",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.liquid.level",
"x-to-ocf": [
"oic.r.liquid.level.desiredlevel = liquidLevel * 20"
],
"x-from-ocf": [
"liquidLevel = oic.r.liquid.level.desiredlevel / 20"
]
}
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "#/definitions/onem2m.m.liquidlevel"}
],
"required": [ "liquidlevel" ]
}