{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "events": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "coverPicture": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "profilePicture": {
                        "type": "string"
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "startTime": {
                        "type": "string"
                    },
                    "endTime": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updatedTime": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "timezone": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "timeFromNow": {
                        "type": "integer"
                    },
                    "isCancelled": {
                        "type": "boolean"
                    },
                    "category": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "ticketing": {
                        "type": "object",
                        "properties": {
                            "ticket_uri": {
                                "type": "string"
                            },
                            "terms_uri": {
                                "type": "string"
                            },
                            "privacy_uri": {
                                "type": "string"
                            }
                        },
                        "additionalProperties": false
                    },
                    "distances": {
                        "type": "object",
                        "properties": {
                            "venue": {
                                "type": "number"
                            },
                            "event": {
                                "type": "number"
                            }
                        },
                        "additionalProperties": false
                    },
                    "place": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            },
                            "location": {
                                "type": "object",
                                "properties": {
                                    "city": {
                                        "type": "string"
                                    },
                                    "country": {
                                        "type": "string"
                                    },
                                    "latitude": {
                                        "type": "number"
                                    },
                                    "longitude": {
                                        "type": "number"
                                    },
                                    "state": {
                                        "type": "string"
                                    },
                                    "street": {
                                        "type": "string"
                                    },
                                    "zip": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "latitude",
                                    "longitude"
                                ],
                                "additionalProperties": false
                            }
                        },
                        "additionalProperties": false
                    },
                    "venue": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            },
                            "about": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "emails": {
                                "type": [
                                    "array",
                                    "null"
                                ]
                            },
                            "coverPicture": {
                                "type": "string"
                            },
                            "profilePicture": {
                                "type": "string"
                            },
                            "category": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "categoryList": {
                                "type": [
                                    "array",
                                    "null"
                                ]
                            },
                            "location": {
                                "type": "object",
                                "properties": {
                                    "city": {
                                        "type": "string"
                                    },
                                    "country": {
                                        "type": "string"
                                    },
                                    "latitude": {
                                        "type": "number"
                                    },
                                    "longitude": {
                                        "type": "number"
                                    },
                                    "state": {
                                        "type": "string"
                                    },
                                    "street": {
                                        "type": "string"
                                    },
                                    "zip": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "latitude",
                                    "longitude"
                                ],
                                "additionalProperties": false
                            }
                        },
                        "required": [
                            "id",
                            "name",
                            "location"
                        ],
                        "additionalProperties": false
                    }
                },
                "required": [
                    "id",
                    "name",
                    "distance",
                    "startTime",
                    "timeFromNow",
                    "distances",
                    "stats",
                    "venue"
                ],
                "additionalProperties": false
            }
        },
        "metadata": {
            "type": "object",
            "properties": {
                "venues": {
                    "type": "integer"
                },
                "venuesWithEvents": {
                    "type": "integer"
                },
                "events": {
                    "type": "integer"
                }
            },
            "required": [
                "venues",
                "venuesWithEvents",
                "events"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "events",
        "metadata"
    ],
    "additionalProperties": false
}