{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thingstodoapi-com/json-schema/thingstodoapi-com-event-schema.json",
  "title": "Event",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thingstodoapi-com-openapi.json#/components/schemas/Event",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "category": {
      "type": "string",
      "enum": [
        "music",
        "arts",
        "social",
        "festival",
        "market",
        "popup",
        "supper_club",
        "exhibition",
        "class",
        "sports"
      ]
    },
    "starts_at": {
      "type": "string",
      "format": "date-time",
      "description": "UTC"
    },
    "ends_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "local": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string"
        },
        "time": {
          "type": "string"
        },
        "timezone": {
          "type": "string"
        }
      }
    },
    "venue": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "address": {
          "type": [
            "string",
            "null"
          ]
        },
        "neighborhood": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "lat": {
          "type": [
            "number",
            "null"
          ]
        },
        "lng": {
          "type": [
            "number",
            "null"
          ]
        }
      }
    },
    "summary": {
      "type": [
        "string",
        "null"
      ]
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "price": {
      "type": [
        "string",
        "null"
      ]
    },
    "links": {
      "type": "object",
      "properties": {
        "source": {
          "type": [
            "string",
            "null"
          ]
        },
        "tickets": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "last_verified": {
      "type": "string",
      "format": "date-time"
    },
    "distance_km": {
      "type": "number"
    },
    "match": {
      "type": "object",
      "properties": {
        "score": {
          "type": "number"
        },
        "via": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}