{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://developer.eventzilla.net/schemas/event",
  "title": "Event",
  "description": "An Eventzilla event including scheduling, venue, and ticket availability details.",
  "type": "object",
  "properties": {
    "id": { "type": "number", "description": "Unique event identifier" },
    "title": { "type": "string", "description": "Event title" },
    "description": { "type": "string", "description": "Plain-text event description" },
    "description_html": { "type": "string", "description": "HTML event description" },
    "currency": { "type": "string", "description": "ISO 4217 currency code" },
    "start_date": { "type": "string", "format": "date-time", "description": "Event start date and time" },
    "start_time": { "type": "string", "description": "Formatted start time" },
    "end_date": { "type": "string", "format": "date-time", "description": "Event end date and time" },
    "end_time": { "type": "string", "description": "Formatted end time" },
    "time_zone": { "type": "string", "description": "IANA time zone name" },
    "timezone_code": { "type": "string", "description": "Time zone abbreviation" },
    "utc_offset": { "type": "string", "description": "UTC offset string" },
    "tickets_sold": { "type": "number", "description": "Number of tickets sold" },
    "tickets_total": { "type": "number", "description": "Total ticket capacity" },
    "status": {
      "type": "string",
      "enum": ["live", "draft", "unpublished", "completed"],
      "description": "Current event status"
    },
    "show_remaining": { "type": "boolean", "description": "Whether to display remaining ticket count" },
    "twitter_hashtag": { "type": "string", "description": "Twitter hashtag for the event" },
    "invite_code": { "type": "string", "description": "Invite code for private events" },
    "url": { "type": "string", "format": "uri", "description": "Public event URL" },
    "logo_url": { "type": "string", "format": "uri", "description": "Event logo image URL" },
    "bgimage_url": { "type": "string", "format": "uri", "description": "Event background image URL" },
    "venue": { "type": "string", "description": "Venue name and address" },
    "dateid": { "type": "number", "description": "Event date identifier" },
    "categories": { "type": "string", "description": "Comma-separated event categories" },
    "language": { "type": "string", "description": "Event language code" }
  }
}
