{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "locations": {
            "$ref": "#/definitions/LocationsType"
        },
        "version": {
            "type": "string"
        }
    },
    "definitions": {
        "LocationsType": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "location": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/LocationType"
                    }
                },
                "numsys": {
                    "type": "integer"
                }
            }
        },
        "LocationType": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "detectors": {
                    "$ref": "#/definitions/Detectors"
                },
                "id": {
                    "type": "string"
                },
                "file": {
                    "type": "string",
                    "enum": [
                        "OK",
                        "NONE"
                    ]
                },
                "path": {
                    "type": "string"
                }
            }
        },
        "Detectors": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "detector": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/DetectorType"
                    }
                }
            }
        },
        "DetectorType": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "id": {
                    "type": "string"
                },
                "code": {
                    "type": "integer"
                },
                "faze": {
                    "type": "integer"
                },
                "lane": {
                    "type": "integer"
                },
                "mode": {
                    "type": "string"
                }
            }
        }
    }
}