schemas/timeSeriesData.json in losant_rest-1.10.0 vs schemas/timeSeriesData.json in losant_rest-1.10.1

- old
+ new

@@ -12,21 +12,100 @@ }, "resolution": { "type": "number" }, "aggregation": { - "type": "string", - "enum": [ - "FIRST", - "LAST", - "COUNT", - "MAX", - "MIN", - "MEDIAN", - "MEAN", - "SUM", - "STD_DEV", - "NONE" + "oneOf": [ + { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "FIRST", + "LAST", + "COUNT", + "MAX", + "MIN", + "MEDIAN", + "MEAN", + "SUM", + "STD_DEV" + ] + }, + { + "type": "string", + "enum": [ + "NONE" + ] + } + ] + }, + "options": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "type" + ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "TIMEATVALUE" + ] + }, + "options": { + "type": "object", + "properties": { + "value": { + "type": "string", + "maxLength": 255 + } + }, + "additionalProperties": false, + "required": [ + "value" + ] + } + }, + "additionalProperties": false, + "required": [ + "type", + "options" + ] + } ] }, "devices": { "type": "object", "patternProperties": { \ No newline at end of file