{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/forward-email/json-schema/forward-email-calendar-schema.json",
  "title": "Calendar",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/forward-email-calendars-api-openapi.yml#/components/schemas/Calendar",
  "type": "object",
  "required": [
    "id",
    "name",
    "description",
    "color",
    "timezone",
    "order",
    "created_at",
    "updated_at",
    "object"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Calendar ID (calendarId from CalDAV)"
    },
    "name": {
      "type": "string",
      "description": "Calendar name"
    },
    "description": {
      "type": "string",
      "description": "Calendar description"
    },
    "color": {
      "type": "string",
      "description": "Calendar color (hex format)"
    },
    "timezone": {
      "type": "string",
      "description": "Calendar timezone"
    },
    "order": {
      "type": "integer",
      "description": "Calendar display order"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "object": {
      "type": "string",
      "enum": [
        "calendar"
      ]
    }
  }
}