{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "race env map file",
    "definitions": {
        "point": {
            "type": "array",
            "items": {
                "type": "number"
            },
            "minItems": 2,
            "maxItems": 2
        }
    },
    "type": "object",
    "properties": {
        "size": {
            "type": "array",
            "items": {
                "type": "integer"
            },
            "minItems": 2,
            "maxItems": 2
        },
        "max_time": {
            "type": "number"
        },
        "cars": {
            "type": "array",
            "items": {
                "type": "array",
                "items": {
                    "type": "number"
                },
                "minItems": 3,
                "maxItems": 3
            }
        },
        "walls": {
            "type": "array",
            "items": {
                "type": "array",
                "items": {
                    "$ref": "#/definitions/point"
                }
            }
        },
        "headline": {
            "type": "array",
            "items": {
                "$ref": "#/definitions/point"
            }
        },
        "finish": {
            "type": "array",
            "items": {
                "$ref": "#/definitions/point"
            },
            "minItems": 2,
            "maxItems": 2
        }
    },
    "required": [
        "walls",
        "headline",
        "finish",
        "max_time",
        "size",
        "cars"
    ]
}