{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sifflet/json-schema/sifflet-public-calendar-get-dto-schema.json",
  "title": "PublicCalendarGetDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sifflet-calendars-api-openapi.yml#/components/schemas/PublicCalendarGetDto",
  "required": [
    "id",
    "name",
    "timeslots"
  ],
  "type": "object",
  "properties": {
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "editable": {
      "type": "boolean"
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "standardCalendar": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "US_PUBLIC_HOLIDAYS",
        "FRANCE_PUBLIC_HOLIDAYS",
        "UK_PUBLIC_HOLIDAYS",
        "BELGIUM_PUBLIC_HOLIDAYS",
        "SPAIN_PUBLIC_HOLIDAYS",
        "GERMANY_PUBLIC_HOLIDAYS",
        "NETHERLANDS_PUBLIC_HOLIDAYS",
        "SUNDAYS",
        "WEEKENDS"
      ]
    },
    "timeslots": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CalendarTimeslot"
      }
    }
  },
  "$defs": {
    "CalendarTimeslot": {
      "required": [
        "date"
      ],
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "format": "date"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}