schemas/deviceCommands.json in losant_rest-1.0.4 vs schemas/deviceCommands.json in losant_rest-1.0.5
- old
+ new
@@ -5,11 +5,29 @@
"title": "Device Command",
"description": "Schema for a command for a single Device",
"type": "object",
"properties": {
"time": {
- "type": "string",
- "format": "date-time"
+ "oneOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "$date": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "$date"
+ ]
+ }
+ ]
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
\ No newline at end of file