{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xp-tickets/json-schema/xp-tickets-event-schema.json",
  "title": "Event",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xp-tickets-openapi.yml#/components/schemas/Event",
  "type": "object",
  "required": [
    "id",
    "title",
    "start_datetime_local",
    "start_datetime",
    "timezone",
    "venue"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Event external ID (prefixed `evt_`)."
    },
    "title": {
      "type": "string"
    },
    "start_datetime_local": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$",
      "description": "Wall-clock time at the venue, no timezone offset.\nFormat: `YYYY-MM-DDTHH:MM:SS` (ISO 8601 without timezone).\n"
    },
    "start_datetime": {
      "type": "string",
      "format": "date-time",
      "description": "UTC time, ISO 8601 with `Z` suffix."
    },
    "timezone": {
      "type": "string",
      "description": "IANA timezone name of the venue."
    },
    "event_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "Event category. Common values: `concert`, `theater`,\n`sport`, `comedy`. Free-form — call `GET /events/facets`\nfor the live list.\n"
    },
    "venue": {
      "$ref": "#/$defs/VenueSummary"
    },
    "performers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PerformerSummary"
      }
    }
  },
  "$defs": {
    "PerformerSummary": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Performer external ID (prefixed `prf_`)."
        },
        "name": {
          "type": "string"
        },
        "league": {
          "type": [
            "string",
            "null"
          ],
          "description": "League, for sports performers. Common values: `NFL`, `MLB`,\n`NHL`, `NBA`, `NCAA Men's Basketball`, `NCAA Football`.\nFree-form — call `GET /performers/facets` for the live\nlist. `null` for non-sports performers.\n"
        },
        "role": {
          "type": [
            "string",
            "null"
          ],
          "description": "The performer's role in this event. Common values:\n`headliner`, `supporting act`, `special guest`,\n`opening act`, `tertiary`. May be `null`. Not filterable.\n"
        }
      }
    },
    "VenueSummary": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Venue external ID (prefixed `vnu_`)."
        },
        "name": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "state_code": {
          "type": "string",
          "description": "Subdivision (state / province / region) where the venue is\nlocated. **Format is not strict** — parse as an opaque\nstring, not as a fixed-length ISO code. Typically an ISO\n3166-2 two-letter code for US states / Canadian provinces\n(e.g. `NY`, `ON`), but partners should expect free-form\nregional names for international venues (e.g. `Saxony`,\n`Lower Saxony`, `City of Bristol`). Legacy non-US rows may\nalso carry the literal country code here (e.g. `UK`).\n"
        }
      }
    }
  }
}