{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/yelp/refs/heads/main/json-structure/yelp-event-structure.json",
  "name": "Event",
  "description": "Event schema from Yelp Fusion API",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "gR9DTbKCON2g1Z23bWcEpQ"
    },
    "name": {
      "type": "string",
      "example": "Ricky's Tacos"
    },
    "category": {
      "type": "string",
      "example": "music"
    },
    "description": {
      "type": "string",
      "example": "Live music in the heart of the Mission District."
    },
    "time_start": {
      "type": "string",
      "example": "2026-07-04T19:00:00-07:00"
    },
    "time_end": {
      "type": "string",
      "example": "2026-07-04T23:00:00-07:00"
    },
    "location": {
      "$ref": "#/components/schemas/Location"
    },
    "latitude": {
      "type": "double",
      "example": 37.7867
    },
    "longitude": {
      "type": "double",
      "example": -122.4112
    },
    "image_url": {
      "type": "uri",
      "example": "https://s3-media0.fl.yelpcdn.com/bphoto/abc123/o.jpg"
    },
    "event_site_url": {
      "type": "uri",
      "example": "https://www.yelp.com/events/san-francisco-summer-music-festival"
    },
    "is_free": {
      "type": "boolean",
      "example": true
    },
    "is_canceled": {
      "type": "boolean",
      "example": false
    },
    "is_official": {
      "type": "boolean",
      "example": true
    },
    "attending_count": {
      "type": "int32",
      "example": 312
    },
    "interested_count": {
      "type": "int32",
      "example": 1024
    },
    "cost": {
      "type": "float",
      "example": 0
    },
    "cost_max": {
      "type": "float",
      "example": 0
    },
    "tickets_url": {
      "type": "uri",
      "example": "https://www.yelp.com/events/tickets/abc123"
    },
    "business_id": {
      "type": "string",
      "example": "gR9DTbKCON2g1Z23bWcEpQ"
    }
  }
}