{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "deviceGroupDocument", "description": "A group of devices that are referenced by name only", "type": "object", "properties": { "_id": { "$ref": "common#/definitions/mongoObjectId" }, "name": { "$ref": "common#/definitions/standardName" }, "description": { "$ref": "common#/definitions/standardDescription" }, "devices": { "$ref": "#/definitions/devices" } }, "additionalProperties": true, "definitions": { "devices": { "type": "array", "items": { "$ref": "deviceData#/definitions/deviceName" } }, "groupDetails": { "type": "object", "properties": { "name": { "$ref": "common#/definitions/standardName" }, "description": { "$ref": "common#/definitions/standardDescription" }, "devices": { "type": "array", "items": { "$ref": "deviceData#/definitions/deviceName" } } }, "required": [ "name" ], "additionalProperties": false }, "updateGroupDetails": { "type": "object", "properties": { "name": { "$ref": "common#/definitions/standardName" }, "description": { "$ref": "common#/definitions/standardDescription" }, "devices": { "type": "array", "items": { "$ref": "deviceData#/definitions/deviceName" } } }, "additionalProperties": false }, "createGroupResponse": { "type": "object", "properties": { "id": { "$ref": "common#/definitions/mongoObjectId" }, "message": { "type": "string" }, "status": { "type": "string" } }, "required": [ "id", "message", "status" ] }, "createGroupResponseWithName": { "type": "object", "properties": { "id": { "$ref": "common#/definitions/mongoObjectId" }, "name": { "type": "string" }, "message": { "type": "string" }, "status": { "type": "string" } }, "required": [ "id", "name", "message", "status" ] }, "updateGroupsResponse": { "type": "object", "properties": { "status": { "type": "string" }, "modified": { "type": "number" } }, "required": [ "status", "modified" ] }, "deleteGroupResponse": { "type": "object", "properties": { "status": { "type": "string" }, "deleted": { "type": "number" } }, "required": [ "status", "deleted" ] } } }