{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "signalTimingData": {
            "$ref": "#/definitions/SignalTimingDataType"
        },
        "version": {
            "type": "string"
        }
    },
    "definitions": {
        "SignalTimingDataType": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "std": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/Std"
                    }
                },
                "numsys": {
                    "type": "integer"
                }
            }
        },
        "Std": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "timingPlans": {
                    "$ref": "#/definitions/TimingPlans"
                },
                "id": {
                    "type": "string"
                },
                "file": {
                    "type": "string",
                    "enum": [
                        "OK",
                        "NONE"
                    ]
                },
                "path": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "TimingPlans": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "timingPlan": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/TimingPlan"
                    }
                }
            }
        },
        "TimingPlan": {
            "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"
                }
            }
        }
    }
}