{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/recal/main/json-schema/recal-event-schema.json",
  "title": "Event",
  "description": "Recal Normalized Event",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/recal-openapi.json#/components/schemas/Event",
  "type": "object",
  "properties": {
    "attendees": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "description": "Recal Normalized Attendee",
            "properties": {
              "email": {
                "type": "string"
              },
              "original": {},
              "self": {
                "const": true
              }
            },
            "required": [
              "email",
              "original",
              "self"
            ]
          },
          {
            "type": "object",
            "description": "Recal Normalized Attendee",
            "properties": {
              "email": {
                "type": "string"
              },
              "original": {},
              "responseStatus": {
                "enum": [
                  "accepted",
                  "declined",
                  "needsAction",
                  "tentative"
                ]
              }
            },
            "required": [
              "email",
              "original"
            ]
          }
        ],
        "description": "Recal Normalized Attendee"
      }
    },
    "calendarId": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "original": {},
    "description": {
      "type": "string"
    },
    "end": {
      "type": "string",
      "format": "date-time",
      "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))(T((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([,.]\\d+(?!:))?)?(\\17[0-5]\\d([,.]\\d+)?)?([Zz]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
    },
    "location": {
      "type": "string"
    },
    "metaId": {
      "type": "string"
    },
    "start": {
      "type": "string",
      "format": "date-time",
      "pattern": "^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))(T((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([,.]\\d+(?!:))?)?(\\17[0-5]\\d([,.]\\d+)?)?([Zz]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"
    },
    "subject": {
      "type": "string"
    }
  },
  "required": [
    "attendees",
    "calendarId",
    "id",
    "original"
  ]
}