{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "title": "device",
    "additionalProperties": false,
    "properties": {
        "locations": {
            "type": "array",
            "items": {
                "$ref": "#/definitions/Location"
            }
        },
        "configuration": {
            "$ref": "#/definitions/DeviceConfigurationArchive"
        },
        "status": {
            "type": "array",
            "items": {
                "$ref": "#/definitions/DeviceStatus"
            }
        },
        "deviceInfo": {
            "$ref": "#/definitions/DeviceInfo"
        },
        "guid": {
            "type": "string"
        },
        "uri": {
            "type": "string"
        }
    },
    "definitions": {
        "Location": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "id": {
                    "type": "string"
                }
            }
        },
        "DeviceConfigurationArchive": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "configurations": {
                    "type": "string"
                }
            }
        },
        "DeviceStatus": {
            "type": "object",
            "additionalProperties": false,
            "properties": {}
        },
        "DeviceInfo": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "deviceType": {
                    "type": "string",
                    "enum": [
                        "OTHER",
                        "STREETLIGHT_AREA",
                        "VARIABLE_MESSAGE_SIGN",
                        "PARKING_HOUSE",
                        "DETECTOR",
                        "TRAFFIC_LIGHT_CONTROLLER"
                    ]
                },
                "manufacturer": {
                    "type": "string"
                },
                "designation": {
                    "type": "string"
                },
                "version": {
                    "type": "string"
                }
            }
        }
    }
}