{ "$id": "common", "definitions": { "mongoObjectId": { "type": "string", "pattern": "^[0-9a-f]{24}$", "examples": [ "5c35355dbebaa82eaf8113f0" ] }, "timestamp": { "type": "string", "pattern": "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z", "examples": [ "2019-04-12T14:42:47.958Z" ] }, "standardName": { "type": "string", "examples": [ "my standard name" ], "minLength": 1 }, "standardDescription": { "type": "string", "examples": [ "my standard description" ], "minLength": 1 }, "Device": { "properties": { "name": { "type": "string" }, "variables": { "type": "object" } }, "required": [ "name", "variables" ], "type": "object" }, "QueryObject": { "properties": { "detail": { "type": "string" }, "filter": { "type": "object" }, "limit": { "type": "integer" }, "offset": { "type": "integer" }, "order": { "type": "string" } }, "required": [ "offset", "limit", "filter", "order" ], "type": "object" }, "Group": { "properties": { "childGroups": { "items": { "type": "string" }, "type": "array" }, "devices": { "items": { "type": "string" }, "type": "array" }, "name": { "type": "string" }, "variables": { "type": "object" } }, "required": [ "name", "devices" ], "type": "object" }, "Meta": { "properties": { "count": { "type": "integer" }, "queryObject": { "$ref": "#/definitions/QueryObject" } }, "required": [ "count", "queryObject" ], "type": "object" } } }