schemas/dashboardPost.json in losant_rest-1.16.5 vs schemas/dashboardPost.json in losant_rest-1.16.6

- old
+ new

@@ -1,7 +1,7 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "orgId": { "type": "string", "pattern": "^[A-Fa-f\\d]{24}$" @@ -5622,10 +5622,41 @@ "locale": { "type": "string", "maxLength": 5 }, "ctx": { - "ref": "#/definitions/dashboardContextInstance" + "title": "Dashboard Context Instance", + "description": "Schema for a dashboard context instance", + "type": "object", + "patternProperties": { + "^[0-9a-zA-Z_-]{1,255}$": { + "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 + } + ] + } + }, + "additionalProperties": false }, "branded": { "type": "boolean" } }, \ No newline at end of file