Skip to content

Commit a3c286b

Browse files
committed
measure date simple schema
1 parent 59376d2 commit a3c286b

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "#/schemas/measureddatasimpleschema",
4+
"type": "object",
5+
"default": {},
6+
"additionalProperties": true,
7+
"required": [
8+
"deviceId",
9+
"moduleId",
10+
"messageType",
11+
"messageDate",
12+
"schemaVersion",
13+
"temperature",
14+
"batteryVoltage",
15+
"humidity"
16+
],
17+
"properties": {
18+
"deviceId": {
19+
"$id": "#/properties/deviceId",
20+
"type": "string",
21+
"default": "",
22+
"examples": [
23+
"ID1"
24+
]
25+
},
26+
"moduleId": {
27+
"$id": "#/properties/moduleId",
28+
"type": "string",
29+
"title": "The Moduleid Schema",
30+
"description": "An explanation about the purpose of this instance.",
31+
"default": "",
32+
"examples": [
33+
""
34+
]
35+
},
36+
"messageType": {
37+
"$id": "#/properties/messageType",
38+
"type": "string",
39+
"title": "The Messagetype Schema",
40+
"description": "An explanation about the purpose of this instance.",
41+
"default": "",
42+
"examples": [
43+
"data"
44+
]
45+
},
46+
"messageDate": {
47+
"$id": "#/properties/messagedate",
48+
"type": "string",
49+
"format": "date-time"
50+
},
51+
"temperature": {
52+
"$id": "#/properties/temperature",
53+
"type": "number",
54+
"default": 0,
55+
"examples": [
56+
15.0
57+
]
58+
},
59+
"batteryVoltage": {
60+
"$id": "#/properties/batteryVoltage",
61+
"type": "number",
62+
"default": 0,
63+
"examples": [
64+
590.0
65+
]
66+
},
67+
"humidity": {
68+
"$id": "#/properties/humidity",
69+
"type": "number",
70+
"default": 0,
71+
"examples": [
72+
60.49
73+
]
74+
}
75+
}
76+
}

0 commit comments

Comments
 (0)