{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/akeda-ru/json-schema/akeda-ru-calendar-slot-page-schema.json",
  "title": "CalendarSlotPage",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/akeda-ru-calendar-api-openapi.yml#/components/schemas/CalendarSlotPage",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CalendarSlot"
      }
    },
    "status": {
      "type": "string",
      "description": "Состояние ссылки записи для её владельца: active или paused"
    },
    "bookable": {
      "type": "boolean",
      "description": "Можно ли записаться по ссылке прямо сейчас; у приостановленной — нет, хотя слоты считаются"
    }
  },
  "$defs": {
    "CalendarSlot": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "starts_at",
        "ends_at"
      ],
      "properties": {
        "starts_at": {
          "type": "string"
        },
        "ends_at": {
          "type": "string"
        }
      }
    }
  }
}