{
    "description": "Space API 0.8",
    "type": "object",
    "properties": {
        "api": {
            "type": "string",
            "required": true,
            "enum": ["0.8"]
        },
        "space": {
            "type": "string",
            "required": true
        },
        "logo": {
            "type": "string",
            "required": true
        },
        "url": {
            "required": true,
            "type": "string"
        },
        "address": {
            "required": false,
            "type": "string"
        },
        "phone": {
            "required": false,
            "type": "string"
        },
        "lat": {
            "required": false,
            "type": "number"
        },
        "lon": {
            "required": false,
            "type": "number"
        },
        "cam": {
            "required": false,
            "type": "array",
            "items": {
                "type": "string"
            },
            "minItems": 1
        },
        "stream": {
            "required": false,
            "type": "object"
        },
        "open": {
            "required": true,
            "type": "boolean"
        },
        "status": {
            "required": false,
            "type": "string"
        },
        "lastchange": {
            "required": false,
            "type": "number"
        },
        "events": {
            "required": false,
            "type": "array",
            "items": {
                "required": false,
                "type": "object",
                "properties": {
                    "name": {
                        "required": true,
                        "type": "string"
                    },
                    "type": {
                        "required": true,
                        "type": "string"
                    },
                    "t": {
                        "required": true,
                        "type": "number"
                    },
                    "extra": {
                        "required": false,
                        "type": "string"
                    }
                }
            }
        }
    }
}