{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "cycles": {
            "$ref": "#/definitions/CyclesType"
        },
        "version": {
            "type": "string"
        }
    },
    "definitions": {
        "CyclesType": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "cycle": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/CycleType"
                    }
                },
                "period": {
                    "type": "integer"
                },
                "numsys": {
                    "type": "integer"
                }
            }
        },
        "CycleType": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "greens": {
                    "$ref": "#/definitions/Greens"
                },
                "id": {
                    "type": "string"
                },
                "num": {
                    "type": "integer"
                },
                "cyc": {
                    "type": "integer"
                },
                "valid": {
                    "type": "integer"
                },
                "err": {
                    "type": "integer"
                },
                "trans": {
                    "type": "integer"
                },
                "offcor": {
                    "type": "integer"
                },
                "now": {
                    "type": "integer"
                },
                "std": {
                    "type": "integer"
                },
                "geo": {
                    "type": "integer"
                },
                "node": {
                    "type": "integer"
                },
                "send": {
                    "type": "string",
                    "enum": [
                        "OK",
                        "FAIL"
                    ]
                },
                "errno": {
                    "type": "integer"
                },
                "sys": {
                    "type": "string"
                }
            }
        },
        "Greens": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "green": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/GreenType"
                    }
                }
            }
        },
        "GreenType": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "id": {
                    "type": "string"
                },
                "grn": {
                    "type": "integer"
                },
                "ped": {
                    "type": "integer"
                },
                "tim": {
                    "type": "integer"
                },
                "gap": {
                    "type": "integer"
                },
                "max": {
                    "type": "integer"
                },
                "fo": {
                    "type": "integer"
                }
            }
        }
    }
}