{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openaxia-com/json-schema/openaxia-com-event-schema.json",
  "title": "Event",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/openaxia-com-openapi.json#/components/schemas/Event",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "series": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "slug",
        "name"
      ]
    },
    "year": {
      "type": "integer"
    },
    "editionLabel": {
      "type": [
        "string",
        "null"
      ]
    },
    "type": {
      "type": "string",
      "enum": [
        "trade_show",
        "conference",
        "product_launch_event",
        "training_webinar",
        "standards_meeting",
        "other"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "announced",
        "confirmed",
        "postponed",
        "cancelled",
        "completed"
      ],
      "description": "Status on the response date; announced/confirmed editions whose last day has passed read completed."
    },
    "startDate": {
      "type": "string",
      "format": "date"
    },
    "endDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "datePrecision": {
      "type": "string",
      "enum": [
        "day",
        "month",
        "year"
      ],
      "description": "month / year: only the period is known; startDate is the first day of it."
    },
    "dateLabel": {
      "type": [
        "string",
        "null"
      ]
    },
    "format": {
      "type": "string",
      "enum": [
        "in_person",
        "online",
        "hybrid"
      ]
    },
    "venue": {
      "type": [
        "string",
        "null"
      ]
    },
    "city": {
      "type": [
        "string",
        "null"
      ]
    },
    "country": {
      "type": [
        "string",
        "null"
      ]
    },
    "region": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "europe",
        "china",
        "asia_pacific",
        "middle_east_africa",
        "north_america",
        "latin_america",
        "cis",
        null
      ]
    },
    "organisers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EventOrganiser"
      }
    },
    "website": {
      "type": [
        "string",
        "null"
      ]
    },
    "attendanceUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "exhibitorDirectoryUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "note": {
      "type": [
        "string",
        "null"
      ],
      "description": "Editorial caveat, e.g. unverified dates."
    },
    "lastVerifiedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "url",
          "title"
        ]
      }
    },
    "links": {
      "type": "object",
      "properties": {
        "api": {
          "type": "string"
        }
      },
      "required": [
        "api"
      ]
    }
  },
  "required": [
    "slug",
    "name",
    "series",
    "year",
    "editionLabel",
    "type",
    "status",
    "startDate",
    "endDate",
    "datePrecision",
    "dateLabel",
    "format",
    "venue",
    "city",
    "country",
    "region",
    "organisers",
    "website",
    "attendanceUrl",
    "exhibitorDirectoryUrl",
    "note",
    "lastVerifiedAt",
    "sources",
    "links"
  ],
  "$defs": {
    "EventOrganiser": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "organiserType": {
          "type": "string",
          "enum": [
            "trade_fair_organiser",
            "association",
            "standards_body",
            "manufacturer",
            "certification_body",
            "other"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ]
        },
        "website": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "slug",
        "name",
        "organiserType",
        "country",
        "website"
      ]
    }
  }
}