{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "timings": {
            "$ref": "#/definitions/TimingsType"
        },
        "version": {
            "type": "string"
        }
    },
    "definitions": {
        "TimingsType": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "timing": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/TimingType"
                    }
                },
                "numsys": {
                    "type": "integer"
                }
            }
        },
        "TimingType": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "curPlan": {
                    "$ref": "#/definitions/TimingPlanType"
                },
                "id": {
                    "type": "integer"
                },
                "adaptive": {
                    "type": "string",
                    "enum": [
                        "PLAN",
                        "PATTERN",
                        "STANDBY"
                    ]
                },
                "adaPlan": {
                    "type": "integer"
                },
                "adaMode": {
                    "type": "string",
                    "enum": [
                        "FREE",
                        "FLASH"
                    ]
                },
                "adaPattern": {
                    "type": "integer"
                },
                "tod": {
                    "type": "string",
                    "enum": [
                        "PLAN",
                        "PATTERN",
                        "STANDBY"
                    ]
                },
                "todPlan": {
                    "type": "integer"
                },
                "todMode": {
                    "type": "string",
                    "enum": [
                        "FREE",
                        "FLASH"
                    ]
                },
                "todPattern": {
                    "type": "integer"
                },
                "todnum": {
                    "type": "integer"
                },
                "override": {
                    "type": "string",
                    "enum": [
                        "PLAN",
                        "PATTERN",
                        "STANDBY"
                    ]
                },
                "ovrPlan": {
                    "type": "integer"
                },
                "ovrMode": {
                    "type": "string",
                    "enum": [
                        "FREE",
                        "FLASH"
                    ]
                },
                "ovrPattern": {
                    "type": "integer"
                },
                "now": {
                    "type": "string",
                    "enum": [
                        "PATTERN",
                        "FLASH",
                        "TBC",
                        "STANDBY",
                        "FAIL",
                        "PLAN",
                        "UNKNOWN"
                    ]
                },
                "op": {
                    "type": "string",
                    "enum": [
                        "PICKUP",
                        "OFFSET",
                        "NCS",
                        "TRANSITION"
                    ]
                },
                "to": {
                    "type": "integer"
                },
                "fail": {
                    "type": "string",
                    "enum": [
                        "CONFLICT",
                        "CDI",
                        "PRE_EMPT",
                        "UNKNOWN",
                        "RESET"
                    ]
                }
            }
        },
        "TimingPlanType": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "phases": {
                    "$ref": "#/definitions/Phases"
                },
                "id": {
                    "type": "string"
                },
                "cycle": {
                    "type": "integer"
                },
                "min": {
                    "type": "integer"
                },
                "offset": {
                    "type": "integer"
                },
                "sigplan": {
                    "type": "integer"
                }
            }
        },
        "Phases": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "phase": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/PhaseType"
                    }
                }
            }
        },
        "PhaseType": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "value": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "serves": {
                    "type": "integer"
                },
                "rof": {
                    "type": "integer"
                },
                "split": {
                    "type": "integer"
                },
                "disp": {
                    "type": "string",
                    "enum": [
                        "EW_L",
                        "SB_L",
                        "NB_W",
                        "SB_W",
                        "WB_G",
                        "NB_L",
                        "EW_W",
                        "NS_W",
                        "EB_W",
                        "NS_E",
                        "NS_L",
                        "WB_L",
                        "SB_G",
                        "EB_L",
                        "WB_B",
                        "EW_G"
                    ]
                },
                "minvar": {
                    "type": "integer"
                },
                "variable": {
                    "type": "integer"
                },
                "clear": {
                    "type": "integer"
                },
                "fixed": {
                    "type": "integer"
                }
            }
        }
    }
}