{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/daycal-io/json-schema/daycal-io-booked-schema.json",
  "title": "Booked",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/daycal-io-openapi.json#/components/schemas/Booked",
  "type": "object",
  "properties": {
    "booking": {
      "$ref": "#/$defs/Booking"
    },
    "confirmation": {
      "type": "string"
    }
  },
  "required": [
    "booking",
    "confirmation"
  ],
  "$defs": {
    "Booking": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "start": {
          "type": "string",
          "format": "date-time"
        },
        "end": {
          "type": "string",
          "format": "date-time"
        },
        "eventType": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "manageUrl": {
          "type": "string"
        },
        "conferenceUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "confirmed",
            "cancelled",
            "rescheduled"
          ]
        }
      },
      "required": [
        "id",
        "start",
        "end",
        "eventType",
        "title",
        "manageUrl",
        "conferenceUrl",
        "status"
      ]
    }
  }
}