{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thecoop-media/json-schema/thecoop-media-event-schema.json",
  "title": "Event",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thecoop-media-data-openapi.yml#/components/schemas/Event",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "event"
    },
    "slug": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "description": "Canonical URL. Cite this."
    },
    "title": {
      "type": "string"
    },
    "start_date": {
      "type": "string",
      "description": "ISO 8601 date or date-time."
    },
    "end_date": {
      "type": "string",
      "description": "ISO 8601 date or date-time."
    },
    "city": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "venue": {
      "type": "string"
    },
    "organizer": {
      "type": "string"
    },
    "official_url": {
      "type": "string"
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "checked_at": {
            "anyOf": [
              {
                "type": "string",
                "description": "ISO 8601 date or date-time."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "label",
          "url"
        ],
        "additionalProperties": {},
        "description": "A public source behind a record or fact."
      }
    },
    "exhibitor_count": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "exhibitors": {
      "description": "Present only with include_exhibitors=true.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "booth": {
            "type": "string"
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "supplier_url": {
            "description": "THE COOP profile of the exhibitor, when one is published.",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": {}
      }
    }
  },
  "required": [
    "type",
    "slug",
    "url",
    "title",
    "start_date",
    "end_date",
    "exhibitor_count"
  ],
  "additionalProperties": {}
}