schemas/dashboards.json in losant_rest-1.5.2 vs schemas/dashboards.json in losant_rest-1.6.0

- old
+ new

@@ -165,24 +165,45 @@ "pattern": "^[0-9a-zA-Z_-]{1,255}$" }, "type": { "type": "string", "enum": [ - "deviceId", "deviceAttribute", - "string", - "number" + "deviceId", + "deviceTag", + "number", + "string" ] }, "applicationId": { "type": "string", "pattern": "^[A-Fa-f\\d]{24}$" }, "defaultValue": { - "type": [ - "string", - "number" + "oneOf": [ + { + "type": "string", + "maxLength": 32767 + }, + { + "type": "number" + }, + { + "type": "object", + "properties": { + "key": { + "type": "string", + "pattern": "^[0-9a-zA-Z_-]{1,255}$" + }, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 255 + } + }, + "additionalProperties": false + } ] }, "validationEnabled": { "type": "boolean" }, @@ -202,11 +223,12 @@ "attributes": { "type": "array", "items": { "type": "string", "pattern": "^[0-9a-zA-Z_-]{1,255}$" - } + }, + "maxItems": 100 }, "deviceIds": { "type": "array", "items": { "type": "string", @@ -241,10 +263,11 @@ "name", "type", "defaultValue" ], "additionalProperties": false - } + }, + "maxItems": 100 } } } }, "count": { \ No newline at end of file