Skip to content

Commit 2885378

Browse files
committed
make data required (#49)
* fix: make data property required otherwise the message would be blank and not be useful. * Update flip.json * Update temp.json * Update cell-position.json
1 parent 77b5257 commit 2885378

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

schemas/cloudToDevice/gps/gps.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"additionalProperties":false,
3030
"required":[
3131
"appId",
32-
"messageType"
32+
"messageType",
33+
"data"
3334
]
3435
}

schemas/cloudToDevice/temp/temp.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"additionalProperties":false,
3434
"required":[
3535
"appId",
36-
"messageType"
36+
"messageType",
37+
"data"
3738
]
3839
}

schemas/deviceToCloud/flip/flip.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
},
3333
"required":[
3434
"appId",
35-
"messageType"
35+
"messageType",
36+
"data"
3637
],
3738
"additionalProperties":false
3839
}

schemas/deviceToCloud/temp/temp.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"additionalProperties":false,
3131
"required":[
3232
"appId",
33-
"messageType"
33+
"messageType",
34+
"data"
3435
]
3536
}

schemas/deviceToCloud/wifi/wifi-position.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
"additionalProperties": false
5050
}
5151
},
52+
"required": [
53+
"data"
54+
],
5255
"definitions": {
5356
"MacAddress": {
5457
"type": "string",

0 commit comments

Comments
 (0)