{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/venunite-com/json-schema/venunite-com-event-schema.json",
  "title": "Event",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/venunite-com-openapi.json#/components/schemas/Event",
  "type": "object",
  "required": [
    "id",
    "title",
    "slug",
    "eventUrl",
    "startDate",
    "categories",
    "source",
    "updatedAt",
    "ticketLinkStatus",
    "isSoldOut",
    "isLowTickets",
    "isPostponed"
  ],
  "properties": {
    "id": {
      "type": "integer"
    },
    "title": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "eventUrl": {
      "type": "string",
      "format": "uri",
      "description": "Canonical VenuNite event page. Use this URL when citing or sharing a listing; website remains the external source. Pass id to POST /v1/ticket-handoffs for a supported ticket seller handoff."
    },
    "startDate": {
      "type": "string",
      "format": "date-time"
    },
    "endDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "cost": {
      "type": [
        "string",
        "null"
      ],
      "description": "Resolved display cost after reconciling source text with structured isFree evidence. Returns \"Free\" when admission resolves free; hides stale legacy-free text as null when isFree is explicitly false; otherwise returns trimmed source text or null when no display amount is known. Inspect isFree to distinguish free, known non-free with an unknown amount, and unknown admission status."
    },
    "isFree": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "True for explicitly unconditional free admission, false for known non-free admission, and null when the source provides no trustworthy admission evidence."
    },
    "isSoldOut": {
      "type": "boolean",
      "description": "True when the source reports the event sold out. Sold-out events are included in the feed so inventory is complete; filter on this flag (or pass exclude_sold_out=true) to hide them. ticketLinkStatus reflects link health only and stays `available` for a sold-out event with a working link."
    },
    "isLowTickets": {
      "type": "boolean",
      "description": "True when the source reports limited remaining tickets."
    },
    "isPostponed": {
      "type": "boolean",
      "description": "True when the title announces a postponement. startDate is the date the source lists, which may have changed."
    },
    "age": {
      "type": [
        "string",
        "null"
      ]
    },
    "ticketUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "VenuNite ticket redirect for the first usable ticket or event URL after confirmed-broken links are removed. Null when no safe destination is available."
    },
    "website": {
      "type": [
        "string",
        "null"
      ],
      "description": "Sanitized external event website after confirmed-broken links are removed or replaced."
    },
    "ticketLinkStatus": {
      "type": "string",
      "enum": [
        "available",
        "unavailable",
        "missing"
      ],
      "description": "Available when a safe ticket or event destination can be served; unavailable when stored candidates are unusable; missing when none were supplied."
    },
    "imageUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Zero or more canonical event labels: Music, Comedy, Theater, Dance, Film, Art, Food & Drink, Sports, Festival, Community, Wellness, Nightlife, Family, Literary, Trivia & Games, Open Mic, Workshop, Conference, Fundraiser, Holiday, Karaoke. May be empty. Filter with the category query parameter; these labels describe events, not a restaurant or venue directory."
    },
    "source": {
      "type": "string",
      "description": "The source token that supplied this listing, in the same vocabulary as the source filter: a prefix such as scraper:ticketmaster or scraper:usda followed by an internal module name. Treat the part after the prefix as opaque; it can change when a source is rebuilt."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "When VenuNite last wrote this stored event. A re-scrape can move it with no returned field changing, so compare fields before treating a row as changed. An event that stops being served simply leaves the feed; there is no removal record."
    },
    "venue": {
      "type": [
        "object",
        "null"
      ],
      "description": "Always an object on /v1/events: hydration requires a visible venue, so a venue-less event is never delivered — it is dropped from the page instead. Typed nullable because the shared serializer emits null when an event has no venue.",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "city": {
          "type": "string",
          "description": "Matched EXACTLY and case-sensitively by the `city` filter — pass \"Denver\", not \"denver\"."
        },
        "state": {
          "type": "string"
        },
        "timezone": {
          "type": [
            "string",
            "null"
          ],
          "description": "IANA time zone of the venue (e.g. `America/Denver`). `startDate` and `endDate` are UTC, so this is required to render local time — without it an evening event west of UTC formats to the wrong calendar day. Null where the zone could not be resolved."
        },
        "latitude": {
          "type": [
            "number",
            "null"
          ]
        },
        "longitude": {
          "type": [
            "number",
            "null"
          ]
        },
        "geocodePrecision": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "street",
            "zip",
            "city",
            "unknown",
            null
          ],
          "description": "Precision of the coordinate pair. Only `street` identifies the venue building; `unknown` is a source-supplied point that has not been classified (usually the venue itself, occasionally a shared or approximate pin); ZIP/city coordinates are centroids suitable for broad coverage, not exact distance or map-pin claims."
        },
        "distanceMiles": {
          "type": [
            "number",
            "null"
          ],
          "description": "Great-circle miles from the query's `lat`/`lng` to the venue's stored coordinate, rounded to 0.01. Only set on radius queries; null on polygon queries and on every other request. The distance is exactly as good as `geocodePrecision`: a `zip` or `city` centroid can sit several miles from the building."
        }
      }
    }
  }
}