-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathonem2m.m.height.json
69 lines (69 loc) · 2.05 KB
/
onem2m.m.height.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
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
69
{
"id": "http://openinterconnect.org/onem2mmapping/schemas/onem2m.m.height.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "Height",
"definitions": {
"onem2m.m.height": {
"type": "object",
"properties": {
"height": {
"type": "number",
"description": "Measurement of height",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.height",
"x-to-ocf": [
"oic.r.height.height = height",
"oic.r.height.units = cm"
],
"x-from-ocf": {
"oneOf": [
{
"properties": {
"oic.r.height.units": "string",
"enum": ["cm"]
},
"x-from-ocf": [
"height = oic.r.height.height"
]
},
{
"properties": {
"oic.r.height.units": "string",
"enum": ["m"]
},
"x-from-ocf": [
"height = oic.r.height.height*100"
]
},
{
"properties": {
"voic.r.height.units": "string",
"enum": ["ft"]
},
"x-from-ocf": [
"height = oic.r.height.height*30.48"
]
},
{
"properties": {
"oic.r.height.units": "string",
"enum": ["in"]
},
"x-from-ocf": [
"height = oic.r.height.height*2.54"
]
}
]
}
}
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "#/definitions/onem2m.m.height"}
],
"required": [ "height" ]
}