{
  "openapi": "3.1.0",
  "info": {
    "title": "Way Tourism API",
    "version": "1.0.0",
    "description": "API туристичних даних: курорти, погода, вебкамери, місця та послуги. Стандартний успішний запит коштує 1 токен, окрема HLS-сесія на 30 хвилин — 50 токенів."
  },
  "servers": [
    {"url": "https://api.way.technology", "description": "Production"}
  ],
  "security": [{"bearerAuth": []}],
  "tags": [
    {"name": "System", "description": "Стан та опис API"},
    {"name": "Resorts", "description": "Курорти й пов’язані туристичні дані"},
    {"name": "Places", "description": "Типи туристичних місць"}
  ],
  "paths": {
    "/v1/resorts/{slug}/comments": {
      "get": {
        "tags": [
          "Resorts"
        ],
        "summary": "Коментарі курорту",
        "description": "Спільна дискусія курорту для всіх його камер. Лише читання; 1 токен за успішний запит. Коментарі повертаються мовою оригіналу. Пагінація верхніх коментарів, спочатку новіші (created_at, id DESC); children містить усі публічні відповіді від старіших до новіших. Приховані вузли залишаються лише за наявності публічних відповідей; DEV-коментарі та їхні гілки виключені.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ResortSlug"
          },
          {
            "$ref": "#/components/parameters/Page"
          },
          {
            "$ref": "#/components/parameters/PerPage"
          }
        ],
        "responses": {
          "200": {
            "description": "Дерева публічних коментарів; порожній список також повертає 200.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResortCommentsResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/QuotaExceeded"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/v1/webcams/{webcamId}/comments": {
      "get": {
        "tags": [
          "Resorts"
        ],
        "summary": "Коментарі курорту за ID камери",
        "description": "Спільна дискусія курорту для всіх його камер. Лише читання; 1 токен за успішний запит. Коментарі повертаються мовою оригіналу. Пагінація верхніх коментарів, спочатку новіші (created_at, id DESC); children містить усі публічні відповіді від старіших до новіших. Приховані вузли залишаються лише за наявності публічних відповідей; DEV-коментарі та їхні гілки виключені.",
        "parameters": [
          {
            "$ref": "#/components/parameters/WebcamId"
          },
          {
            "$ref": "#/components/parameters/Page"
          },
          {
            "$ref": "#/components/parameters/PerPage"
          }
        ],
        "responses": {
          "200": {
            "description": "Дерева публічних коментарів; порожній список також повертає 200.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResortCommentsResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/QuotaExceeded"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/v1": {
      "get": {
        "tags": ["System"],
        "summary": "Інформація про API",
        "security": [],
        "responses": {"200": {"description": "Назва, версія та URL документації"}}
      }
    },
    "/v1/health": {
      "get": {
        "tags": ["System"],
        "summary": "Перевірка доступності",
        "security": [],
        "responses": {"200": {"description": "API працює"}}
      }
    },
    "/v1/openapi.json": {
      "get": {
        "tags": ["System"],
        "summary": "OpenAPI 3.1 опис",
        "security": [],
        "responses": {"200": {"description": "Машиночитаний контракт API"}}
      }
    },
    "/v1/resorts": {
      "get": {
        "tags": ["Resorts"],
        "summary": "Список курортів",
        "parameters": [{"$ref": "#/components/parameters/Language"}, {"$ref": "#/components/parameters/Page"}, {"$ref": "#/components/parameters/PerPage"}],
        "responses": {
          "200": {
            "description": "Сторінка активних курортів",
            "content": {
              "application/json": {
                "schema": {"$ref": "#/components/schemas/ResortListResponse"},
                "examples": {
                  "cards": {
                    "value": {
                      "data": [
                        {
                          "id": 136,
                          "slug": "drahobrat",
                          "name": "Драгобрат",
                          "description": "Драгобрат - найвисокогірніший гірськолижний курорт України, розташований у Карпатах на висоті 1400 м. Відомий своїми природними пейзажами, широким вибором трас для лижників і сноубордистів різного рівня, а також можливостями для фрірайду. Ідеальне місце для зимового відпочинку.",
                          "coordinates": {"latitude": 48.248565, "longitude": 24.238722},
                          "elevation": {"bottom_m": 1240, "top_m": 1710},
                          "lifts": {"drag": 6, "chair": 2, "multi": 5},
                          "features": {"ski": true, "tubing": false, "freeride": true},
                          "availability": {
                            "weather": {
                              "available": true,
                              "working": true,
                              "status": "online",
                              "source": "meteoblue",
                              "endpoint": "/v1/resorts/drahobrat/weather",
                              "updated_at": "2026-09-09T04:00:04+03:00",
                              "next_update_at": "2026-09-09T12:00:00+03:00",
                              "recommended_fetch_at": "2026-09-09T12:15:00+03:00"
                            },
                            "weather_station": {"available": true, "working": false, "status": "stale", "source": "davis_weatherlink", "updated_at": "2026-03-30T15:30:01+00:00"},
                            "catalog": {"available": true, "total": 112, "places": 106, "services": 6},
                            "photo_archive": {"available": true, "cameras": 11, "endpoint": "/v1/resorts/drahobrat/photo-archive"},
                            "webcams": {"available": true, "working": true, "status": "partially_online", "online": 3, "offline": 8, "total": 11, "endpoint": "/v1/resorts/drahobrat/webcams"}
                          },
                          "region": {"name": "Закарпатська область"},
                          "cover_image_url": "https://i.snih.info/archive/151/2026/09/09/10/last.jpg",
                          "weather_summary": {
                            "temperature_c": 11.72,
                            "icon_url": null,
                            "label": null,
                            "status": "online",
                            "time": "2026-09-09T06:00:42+03:00",
                            "updated_at": "2026-09-09T03:07:30+00:00",
                            "timezone": "Europe/Kyiv",
                            "level": null
                          },
                          "station_observations": {
                            "source": "davis_api_v2",
                            "status": "online",
                            "timezone": "Europe/Kyiv",
                            "stale_after_seconds": 3600,
                            "updated_at": "2026-09-09T03:07:30+00:00",
                            "current": {
                              "observed_at": "2026-09-09T03:00:42+00:00",
                              "sensors": [
                                {
                                  "type": "outdoor",
                                  "measurements": {"temp": {"value": 11.72, "unit": "°C"}, "hum": {"value": 60.1, "unit": "%"}, "wind_speed_last": {"value": 1.341, "unit": "m/s"}},
                                  "observed_at": "2026-09-09T03:00:42+00:00"
                                }
                              ]
                            },
                            "last_observation": {
                              "observed_at": "2026-09-09T03:00:42+00:00",
                              "sensors": [
                                {
                                  "type": "outdoor",
                                  "measurements": {"temp": {"value": 11.72, "unit": "°C"}, "hum": {"value": 60.1, "unit": "%"}, "wind_speed_last": {"value": 1.341, "unit": "m/s"}},
                                  "observed_at": "2026-09-09T03:00:42+00:00"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "id": 180,
                          "slug": "goro-moutain-resort",
                          "name": "GORO Moutain resort",
                          "description": "GORO — перший в Україні всесезонний курорт міжнародного рівня. 75 км трас, сучасні готелі, канатні дороги та неймовірні краєвиди Карпат. Проєкт від ОККО, що поєднує комфорт і масштаб гірського відпочинку.",
                          "coordinates": {"latitude": 48.786976609626294, "longitude": 23.478432891349556},
                          "elevation": {"bottom_m": 650, "top_m": 1243},
                          "lifts": {"drag": 0, "chair": 0, "multi": 0},
                          "features": {"ski": true, "tubing": false, "freeride": false},
                          "availability": {
                            "weather": {
                              "available": false,
                              "working": false,
                              "status": "unavailable",
                              "source": null,
                              "endpoint": null,
                              "updated_at": null,
                              "next_update_at": null,
                              "recommended_fetch_at": null
                            },
                            "weather_station": {"available": false, "working": false, "status": "unavailable", "source": null, "updated_at": null},
                            "catalog": {"available": false, "total": 0, "places": 0, "services": 0},
                            "photo_archive": {"available": false, "cameras": 0, "endpoint": null},
                            "webcams": {"available": false, "working": false, "status": "unavailable", "online": 0, "offline": 0, "total": 0, "endpoint": null}
                          },
                          "region": {"name": "Львівська область"},
                          "cover_image_url": null,
                          "weather_summary": {"temperature_c": null, "icon_url": null, "label": null, "status": "unavailable", "time": null, "updated_at": null, "timezone": "Europe/Kyiv", "level": null},
                          "station_observations": {"source": null, "status": "unavailable", "timezone": "Europe/Kyiv", "stale_after_seconds": 3600, "updated_at": null, "current": null, "last_observation": null}
                        },
                        {
                          "id": 173,
                          "slug": "krokus",
                          "name": "Крокус",
                          "description": "Курорт Крокус у Львівській області пропонує відпочинок серед мальовничих Карпат. Гості можуть насолоджуватися гірськолижними трасами, СПА-процедурами та різноманітними розвагами. Ідеальне місце для активного та релаксуючого відпочинку.",
                          "coordinates": {"latitude": 48.818058, "longitude": 23.447334},
                          "elevation": {"bottom_m": 640, "top_m": 780},
                          "lifts": {"drag": 0, "chair": 0, "multi": 0},
                          "features": {"ski": true, "tubing": false, "freeride": false},
                          "availability": {
                            "weather": {
                              "available": false,
                              "working": false,
                              "status": "unavailable",
                              "source": null,
                              "endpoint": null,
                              "updated_at": null,
                              "next_update_at": null,
                              "recommended_fetch_at": null
                            },
                            "weather_station": {"available": false, "working": false, "status": "unavailable", "source": null, "updated_at": null},
                            "catalog": {"available": false, "total": 0, "places": 0, "services": 0},
                            "photo_archive": {"available": false, "cameras": 0, "endpoint": null},
                            "webcams": {"available": true, "working": false, "status": "offline", "online": 0, "offline": 1, "total": 1, "endpoint": "/v1/resorts/krokus/webcams"}
                          },
                          "region": null,
                          "cover_image_url": null,
                          "weather_summary": {"temperature_c": null, "icon_url": null, "label": null, "status": "unavailable", "time": null, "updated_at": null, "timezone": "Europe/Kyiv", "level": null},
                          "station_observations": {"source": null, "status": "unavailable", "timezone": "Europe/Kyiv", "stale_after_seconds": 3600, "updated_at": null, "current": null, "last_observation": null}
                        }
                      ],
                      "meta": {
                        "language": "uk",
                        "pagination": {"page": 1, "per_page": 3, "total": 40, "pages": 14},
                        "token_cost": 1,
                        "tokens_charged": 1,
                        "tokens_remaining": 99,
                        "request_id": "example-home"
                      }
                    },
                    "summary": "Приклади форми карток; фактичний порядок визначає каталог."
                  },
                  "empty_page": {
                    "value": {
                      "data": [],
                      "meta": {
                        "language": "uk",
                        "pagination": {"page": 5, "per_page": 10, "total": 40, "pages": 4},
                        "token_cost": 1,
                        "tokens_charged": 1,
                        "tokens_remaining": 98,
                        "request_id": "example-empty"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {"$ref": "#/components/responses/Unauthorized"},
          "402": {"$ref": "#/components/responses/QuotaExceeded"},
          "422": {"$ref": "#/components/responses/ValidationError"}
        },
        "description": "Всі дані картки та наявні погодні вимірювання станції включені. 1 API-токен за запит (super_admin: tokens_charged=0). Пакетне read-only читання MySQL, Redis і того самого Davis-кешу MongoDB, що використовує SNIH. Без крона, provider HTTP та HLS. Поточна погода: свіже realtime → свіжий Davis API → відсутня. lang впливає на назву/область."
      }
    },
    "/v1/resorts/{slug}": {
      "get": {
        "tags": ["Resorts"],
        "summary": "Один курорт",
        "description": "Всі дані картки та наявні погодні вимірювання станції включені. 1 API-токен за запит (super_admin: tokens_charged=0). Пакетне read-only читання MySQL, Redis і того самого Davis-кешу MongoDB, що використовує SNIH. Без крона, provider HTTP та HLS. Поточна погода: свіже realtime → свіжий Davis API → відсутня. lang впливає на назву/область.",
        "parameters": [{"$ref": "#/components/parameters/ResortSlug"}, {"$ref": "#/components/parameters/Language"}],
        "responses": {
          "200": {
            "description": "Дані курорту",
            "content": {
              "application/json": {
                "schema": {"type": "object", "properties": {"data": {"$ref": "#/components/schemas/Resort"}, "meta": {"$ref": "#/components/schemas/Meta"}}},
                "examples": {
                  "missing_sources": {
                    "value": {
                      "data": {
                        "id": 173,
                        "slug": "krokus",
                        "name": "Крокус",
                        "description": "Курорт Крокус у Львівській області пропонує відпочинок серед мальовничих Карпат. Гості можуть насолоджуватися гірськолижними трасами, СПА-процедурами та різноманітними розвагами. Ідеальне місце для активного та релаксуючого відпочинку.",
                        "coordinates": {"latitude": 48.818058, "longitude": 23.447334},
                        "elevation": {"bottom_m": 640, "top_m": 780},
                        "lifts": {"drag": 0, "chair": 0, "multi": 0},
                        "features": {"ski": true, "tubing": false, "freeride": false},
                        "availability": {
                          "weather": {
                            "available": false,
                            "working": false,
                            "status": "unavailable",
                            "source": null,
                            "endpoint": null,
                            "updated_at": null,
                            "next_update_at": null,
                            "recommended_fetch_at": null
                          },
                          "weather_station": {"available": false, "working": false, "status": "unavailable", "source": null, "updated_at": null},
                          "catalog": {"available": false, "total": 0, "places": 0, "services": 0},
                          "photo_archive": {"available": false, "cameras": 0, "endpoint": null},
                          "webcams": {"available": true, "working": false, "status": "offline", "online": 0, "offline": 1, "total": 1, "endpoint": "/v1/resorts/krokus/webcams"}
                        },
                        "region": null,
                        "cover_image_url": null,
                        "weather_summary": {"temperature_c": null, "icon_url": null, "label": null, "status": "unavailable", "time": null, "updated_at": null, "timezone": "Europe/Kyiv", "level": null},
                        "station_observations": {"source": null, "status": "unavailable", "timezone": "Europe/Kyiv", "stale_after_seconds": 3600, "updated_at": null, "current": null, "last_observation": null}
                      },
                      "meta": {"language": "uk", "token_cost": 1, "tokens_charged": 1, "tokens_remaining": 98, "request_id": "example-missing"}
                    }
                  },
                  "davis_fallback": {
                    "value": {
                      "data": {
                        "id": 136,
                        "slug": "drahobrat",
                        "name": "Драгобрат",
                        "description": "Драгобрат - найвисокогірніший гірськолижний курорт України, розташований у Карпатах на висоті 1400 м. Відомий своїми природними пейзажами, широким вибором трас для лижників і сноубордистів різного рівня, а також можливостями для фрірайду. Ідеальне місце для зимового відпочинку.",
                        "coordinates": {"latitude": 48.248565, "longitude": 24.238722},
                        "elevation": {"bottom_m": 1240, "top_m": 1710},
                        "lifts": {"drag": 6, "chair": 2, "multi": 5},
                        "features": {"ski": true, "tubing": false, "freeride": true},
                        "availability": {
                          "weather": {
                            "available": true,
                            "working": true,
                            "status": "online",
                            "source": "meteoblue",
                            "endpoint": "/v1/resorts/drahobrat/weather",
                            "updated_at": "2026-09-09T04:00:04+03:00",
                            "next_update_at": "2026-09-09T12:00:00+03:00",
                            "recommended_fetch_at": "2026-09-09T12:15:00+03:00"
                          },
                          "weather_station": {"available": true, "working": false, "status": "stale", "source": "davis_weatherlink", "updated_at": "2026-03-30T15:30:01+00:00"},
                          "catalog": {"available": true, "total": 112, "places": 106, "services": 6},
                          "photo_archive": {"available": true, "cameras": 11, "endpoint": "/v1/resorts/drahobrat/photo-archive"},
                          "webcams": {"available": true, "working": true, "status": "partially_online", "online": 3, "offline": 8, "total": 11, "endpoint": "/v1/resorts/drahobrat/webcams"}
                        },
                        "region": {"name": "Закарпатська область"},
                        "cover_image_url": "https://i.snih.info/archive/151/2026/09/09/10/last.jpg",
                        "weather_summary": {
                          "temperature_c": 11.72,
                          "icon_url": null,
                          "label": null,
                          "status": "online",
                          "time": "2026-09-09T06:00:42+03:00",
                          "updated_at": "2026-09-09T03:07:30+00:00",
                          "timezone": "Europe/Kyiv",
                          "level": null
                        },
                        "station_observations": {
                          "source": "davis_api_v2",
                          "status": "online",
                          "timezone": "Europe/Kyiv",
                          "stale_after_seconds": 3600,
                          "updated_at": "2026-09-09T03:07:30+00:00",
                          "current": {
                            "observed_at": "2026-09-09T03:00:42+00:00",
                            "sensors": [
                              {
                                "type": "outdoor",
                                "measurements": {"temp": {"value": 11.72, "unit": "°C"}, "hum": {"value": 60.1, "unit": "%"}, "wind_speed_last": {"value": 1.341, "unit": "m/s"}},
                                "observed_at": "2026-09-09T03:00:42+00:00"
                              }
                            ]
                          },
                          "last_observation": {
                            "observed_at": "2026-09-09T03:00:42+00:00",
                            "sensors": [
                              {
                                "type": "outdoor",
                                "measurements": {"temp": {"value": 11.72, "unit": "°C"}, "hum": {"value": 60.1, "unit": "%"}, "wind_speed_last": {"value": 1.341, "unit": "m/s"}},
                                "observed_at": "2026-09-09T03:00:42+00:00"
                              }
                            ]
                          }
                        }
                      },
                      "meta": {"language": "uk", "token_cost": 1, "tokens_charged": 1, "tokens_remaining": 99, "request_id": "example-detail"}
                    }
                  }
                }
              }
            }
          },
          "401": {"$ref": "#/components/responses/Unauthorized"},
          "402": {"$ref": "#/components/responses/QuotaExceeded"},
          "404": {"$ref": "#/components/responses/NotFound"}
        }
      }
    },
    "/v1/resorts/{slug}/weather": {
      "get": {
        "tags": ["Resorts"],
        "summary": "Погода курорту",
        "description": "Набір як SNIH PRO: до 168 погодинних точок (7 днів) на всіх рівнях, денний прогноз до 16 днів, існуючий SNIH AI на сьогодні–завтра і 7 днів, схід/захід сонця на 7 днів. Лише наявний кеш; відсутні точки не вигадуються. Стандартна вартість — 1 токен за запит.",
        "parameters": [
          {"$ref": "#/components/parameters/Language"},
          {"$ref": "#/components/parameters/ResortSlug"},
          {"name": "hours", "in": "query", "description": "Максимум наявних погодинних точок; типовий PRO-горизонт 168 (7 днів), кеш може містити менше", "schema": {"type": "integer", "minimum": 1, "maximum": 168, "default": 168}}
        ],
        "responses": {
          "200": {
            "description": "Повний доступний погодний набір курорту",
            "content": {"application/json": {"schema": {"type": "object", "properties": {"data": {"$ref": "#/components/schemas/Weather"}, "meta": {"$ref": "#/components/schemas/Meta"}}}}}
          },
          "401": {"$ref": "#/components/responses/Unauthorized"},
          "402": {"$ref": "#/components/responses/QuotaExceeded"},
          "404": {"$ref": "#/components/responses/NotFound"}
        }
      }
    },
    "/v1/resorts/{slug}/webcams": {
      "get": {
        "tags": ["Resorts"],
        "summary": "Вебкамери курорту",
        "parameters": [
          {"$ref": "#/components/parameters/ResortSlug"},
          {"$ref": "#/components/parameters/Language"},
          {"$ref": "#/components/parameters/Page"},
          {"$ref": "#/components/parameters/PerPage"}
        ],
        "responses": {
          "200": {
            "description": "Камери зі статусом і тимчасовим URL трансляції",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebcamListResponse"
                },
                "example": {
                  "data": [
                    {
                      "id": 292,
                      "name": "Готель «Хата Магната»",
                      "description": "Камера встановлена на готелі «Хата Магната» і забезпечує чудовий вид на витяги ВЛ 1000, Допельмайр та Вершина Карпат.",
                      "status": "online",
                      "status_changed_at": "2026-09-11T08:37:31+00:00",
                      "coordinates": null,
                      "stream_url": null,
                      "stream_expires_at": null,
                      "stream_expires_in_seconds": null,
                      "hls_available": true,
                      "hls_access_endpoint": "/v1/webcams/292/hls",
                      "hls_token_cost": 50,
                      "image_url": "https://i.snih.info/camera/151/last_s.jpg?version=1789194900",
                      "poster_url": "https://i.snih.info/camera/151/last.jpg?version=1789194900",
                      "page_url": "https://snih.info/uk/drahobrat/151",
                      "website_url": "https://hata-magnata.com",
                      "has_sound": true
                    }
                  ],
                  "meta": {
                    "resort_slug": "drahobrat",
                    "language": "uk",
                    "pagination": {
                      "page": 1,
                      "per_page": 1,
                      "total": 11,
                      "pages": 11
                    },
                    "token_cost": 1,
                    "tokens_charged": 0,
                    "tokens_remaining": null,
                    "request_id": "32aefc128ca4d224674d6a18"
                  }
                }
              }
            }
          },
          "401": {"$ref": "#/components/responses/Unauthorized"},
          "402": {"$ref": "#/components/responses/QuotaExceeded"},
          "404": {"$ref": "#/components/responses/NotFound"}
        }
      }
    },
    "/v1/resorts/{slug}/photo-archive": {
      "get": {
        "tags": ["Resorts"],
        "summary": "Фотоархів курорту",
        "description": "Без webcam_id повертає останній доступний знімок кожної камери курорту. З webcam_id повертає архів однієї камери. Фільтри year, month, day і hour звужують період, а meta.calendar дозволяє побудувати календар лише з доступних дат. order=desc (стандартно) сортує за часом та ID від нових до старих; order=asc — від старих до нових. Сортування застосовується до всієї вибірки перед пагінацією. Без webcam_id напрям змінює лише порядок останніх знімків, а не їх вибір. hour=0 є фільтром години 00:00–00:59 Europe/Kyiv.",
        "parameters": [
          {"$ref": "#/components/parameters/ResortSlug"},
          {"$ref": "#/components/parameters/Language"},
          {"$ref": "#/components/parameters/ArchiveWebcamId"},
          {"$ref": "#/components/parameters/ArchiveYear"},
          {"$ref": "#/components/parameters/ArchiveMonth"},
          {"$ref": "#/components/parameters/ArchiveDay"},
          {"$ref": "#/components/parameters/ArchiveHour"},
          {"$ref": "#/components/parameters/ArchiveOrder"},
          {"$ref": "#/components/parameters/Page"},
          {"name": "per_page", "in": "query", "description": "1…100; стандартно 100 без webcam_id і 20 з webcam_id", "schema": {"type": "integer", "minimum": 1, "maximum": 100}}
        ],
        "responses": {
          "200": {
            "description": "Знімки та календар доступності архіву",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhotoArchiveResponse"
                },
                "examples": {
                  "oldestFirst": {
                    "summary": "Спочатку старі: камера 292, 30 серпня 2026",
                    "description": "GET /v1/resorts/drahobrat/photo-archive?webcam_id=292&year=2026&month=8&day=30&order=asc&page=1&per_page=24&lang=uk",
                    "value": {
                      "data": [
                        {
                          "id": 361723,
                          "captured_at": "2026-08-30T10:00:00+03:00",
                          "webcam": {
                            "id": 292,
                            "name": "Готель «Хата Магната»",
                            "status": "online"
                          },
                          "image_url": "https://i.snih.info/archive/151/2026/08/30/10/last.jpg",
                          "original_url": "https://i.snih.info/archive/151/2026/08/30/10/last1.jpg",
                          "thumbnail_url": "https://i.snih.info/archive/151/2026/08/30/10/last_s.jpg",
                          "share_url": "https://i.snih.info/archive/151/2026/08/30/10/share.jpg",
                          "weather_temperature_c": null
                        },
                        {
                          "id": 361742,
                          "captured_at": "2026-08-30T13:00:00+03:00",
                          "webcam": {
                            "id": 292,
                            "name": "Готель «Хата Магната»",
                            "status": "online"
                          },
                          "image_url": "https://i.snih.info/archive/151/2026/08/30/13/last.jpg",
                          "original_url": "https://i.snih.info/archive/151/2026/08/30/13/last1.jpg",
                          "thumbnail_url": "https://i.snih.info/archive/151/2026/08/30/13/last_s.jpg",
                          "share_url": "https://i.snih.info/archive/151/2026/08/30/13/share.jpg",
                          "weather_temperature_c": null
                        },
                        {
                          "id": 361761,
                          "captured_at": "2026-08-30T16:00:00+03:00",
                          "webcam": {
                            "id": 292,
                            "name": "Готель «Хата Магната»",
                            "status": "online"
                          },
                          "image_url": "https://i.snih.info/archive/151/2026/08/30/16/last.jpg",
                          "original_url": "https://i.snih.info/archive/151/2026/08/30/16/last1.jpg",
                          "thumbnail_url": "https://i.snih.info/archive/151/2026/08/30/16/last_s.jpg",
                          "share_url": "https://i.snih.info/archive/151/2026/08/30/16/share.jpg",
                          "weather_temperature_c": null
                        }
                      ],
                      "meta": {
                        "resort_slug": "drahobrat",
                        "language": "uk",
                        "mode": "webcam_archive",
                        "order": "asc",
                        "webcam": {
                          "id": 292,
                          "name": "Готель «Хата Магната»",
                          "status": "online"
                        },
                        "filters": {
                          "year": 2026,
                          "month": 8,
                          "day": 30,
                          "hour": null
                        },
                        "calendar": {
                          "timezone": "Europe/Kyiv",
                          "range": {
                            "from": "2023-02-18T16:00:00+02:00",
                            "to": "2026-09-18T16:00:00+03:00"
                          },
                          "years": [
                            2026,
                            2025,
                            2024,
                            2023
                          ],
                          "months": [
                            1,
                            2,
                            3,
                            4,
                            5,
                            6,
                            7,
                            8,
                            9
                          ],
                          "days": [
                            1,
                            2,
                            3,
                            4,
                            5,
                            6,
                            7,
                            8,
                            9,
                            10,
                            11,
                            12,
                            13,
                            14,
                            15,
                            16,
                            17,
                            18,
                            19,
                            20,
                            21,
                            22,
                            23,
                            24,
                            25,
                            26,
                            27,
                            28,
                            29,
                            30,
                            31
                          ],
                          "hours": [
                            10,
                            13,
                            16
                          ]
                        },
                        "pagination": {
                          "page": 1,
                          "per_page": 24,
                          "total": 3,
                          "pages": 1
                        },
                        "token_cost": 1,
                        "tokens_charged": 0,
                        "tokens_remaining": null,
                        "request_id": "47e1487ad78bcf3e06e4a002"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {"$ref": "#/components/responses/Unauthorized"},
          "402": {"$ref": "#/components/responses/QuotaExceeded"},
          "404": {"$ref": "#/components/responses/NotFound"},
          "422": {"$ref": "#/components/responses/ValidationError"}
        }
      }
    },
    "/v1/webcams/{webcamId}/hls": {
      "get": {
        "tags": ["Resorts"],
        "summary": "Створити платну HLS-сесію вебкамери",
        "description": "Списує 50 токенів один раз і повертає підписаний stream_url та old_device_hls_url для старих пристроїв на 30 хвилин. old_device_hls_url використовує домен hls.snih.info з тим самим шляхом, підписом і строком дії. Повтор із тим самим Idempotency-Key до завершення сесії повертає ту саму сесію з обома URL без повторного списання.",
        "parameters": [
          {"$ref": "#/components/parameters/WebcamId"},
          {"$ref": "#/components/parameters/IdempotencyKey"}
        ],
        "responses": {
          "200": {
            "description": "Нова або повторно отримана HLS-сесія",
            "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HlsSessionResponse"}}}
          },
          "400": {"$ref": "#/components/responses/BadRequest"},
          "401": {"$ref": "#/components/responses/Unauthorized"},
          "402": {"$ref": "#/components/responses/QuotaExceeded"},
          "404": {"$ref": "#/components/responses/NotFound"},
          "409": {"$ref": "#/components/responses/Conflict"}
        }
      }
    },
    "/v1/resorts/{slug}/places": {
      "get": {
        "tags": ["Resorts"],
        "summary": "Туристичні місця курорту",
        "parameters": [
          {"$ref": "#/components/parameters/ResortSlug"},
          {"$ref": "#/components/parameters/Page"},
          {"$ref": "#/components/parameters/PerPage"}
        ],
        "responses": {
          "200": {"description": "Повні публічні дані місць", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PlaceListResponse"}}}},
          "401": {"$ref": "#/components/responses/Unauthorized"},
          "402": {"$ref": "#/components/responses/QuotaExceeded"},
          "404": {"$ref": "#/components/responses/NotFound"}
        }
      }
    },
    "/v1/resorts/{slug}/services": {
      "get": {
        "tags": ["Resorts"],
        "summary": "Туристичні послуги курорту",
        "parameters": [
          {"$ref": "#/components/parameters/ResortSlug"},
          {"$ref": "#/components/parameters/Page"},
          {"$ref": "#/components/parameters/PerPage"}
        ],
        "responses": {
          "200": {"description": "Публічні інструктори та трансфери курорту без дублів; ті самі правила, що у availability.catalog.services", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ServiceListResponse"}}}},
          "401": {"$ref": "#/components/responses/Unauthorized"},
          "402": {"$ref": "#/components/responses/QuotaExceeded"},
          "404": {"$ref": "#/components/responses/NotFound"}
        }
      }
    },
    "/v1/resorts/{slug}/places/{id}": {
      "get": {
        "tags": ["Resorts"],
        "summary": "Публічна картка місця",
        "description": "Повні публічні дані об’єкта в межах курорту. Приховані та недоступні записи повертають 404. Дані каталогу українською.",
        "parameters": [{"$ref": "#/components/parameters/ResortSlug"}, {"name": "id", "in": "path", "required": true, "schema": {"type": "integer", "minimum": 1}}],
        "responses": {
          "200": {
            "description": "Картка каталогу",
            "content": {
              "application/json": {
                "schema": {"type": "object", "properties": {"data": {"$ref": "#/components/schemas/Place"}, "meta": {"$ref": "#/components/schemas/Meta"}}, "required": ["data", "meta"]}
              }
            }
          },
          "401": {"$ref": "#/components/responses/Unauthorized"},
          "402": {"$ref": "#/components/responses/QuotaExceeded"},
          "404": {"$ref": "#/components/responses/NotFound"}
        }
      }
    },
    "/v1/resorts/{slug}/services/{id}": {
      "get": {
        "tags": ["Resorts"],
        "summary": "Публічна картка сервісу",
        "description": "Повні публічні дані об’єкта в межах курорту. Приховані та недоступні записи повертають 404. Дані каталогу українською.",
        "parameters": [{"$ref": "#/components/parameters/ResortSlug"}, {"name": "id", "in": "path", "required": true, "schema": {"type": "integer", "minimum": 1}}],
        "responses": {
          "200": {
            "description": "Картка каталогу",
            "content": {
              "application/json": {
                "schema": {"type": "object", "properties": {"data": {"$ref": "#/components/schemas/Service"}, "meta": {"$ref": "#/components/schemas/Meta"}}, "required": ["data", "meta"]}
              }
            }
          },
          "401": {"$ref": "#/components/responses/Unauthorized"},
          "402": {"$ref": "#/components/responses/QuotaExceeded"},
          "404": {"$ref": "#/components/responses/NotFound"}
        }
      }
    },
    "/v1/place-types": {
      "get": {
        "tags": ["Places"],
        "summary": "Довідник типів місць",
        "responses": {
          "200": {"description": "Ієрархічний довідник типів українською з іконками та профілем характеристик", "content": {"application/json": {"schema": {"type": "object", "properties": {"data": {"type": "array", "items": {"$ref": "#/components/schemas/PlaceType"}}, "meta": {"$ref": "#/components/schemas/Meta"}}}}}},
          "401": {"$ref": "#/components/responses/Unauthorized"},
          "402": {"$ref": "#/components/responses/QuotaExceeded"}
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {"type": "http", "scheme": "bearer", "bearerFormat": "way_live_*"}
    },
    "parameters": {
      "ResortSlug": {"name": "slug", "in": "path", "required": true, "schema": {"type": "string", "pattern": "^[a-z0-9-]+$"}, "example": "bukovel"},
      "WebcamId": {"name": "webcamId", "in": "path", "required": true, "schema": {"type": "integer", "minimum": 1}, "example": 292},
      "ArchiveWebcamId": {"name": "webcam_id", "in": "query", "description": "ID камери з GET /v1/resorts/{slug}/webcams. Якщо не передано, API повертає останній знімок кожної камери.", "schema": {"type": "integer", "minimum": 1}, "example": 292},
      "ArchiveYear": {"name": "year", "in": "query", "description": "Рік архіву. Доступні значення є в meta.calendar.years.", "schema": {"type": "integer", "minimum": 2010, "maximum": 2100}, "example": 2026},
      "ArchiveMonth": {"name": "month", "in": "query", "description": "Місяць 1…12; потребує year. Доступні значення є в meta.calendar.months.", "schema": {"type": "integer", "minimum": 1, "maximum": 12}, "example": 8},
      "ArchiveDay": {"name": "day", "in": "query", "description": "День місяця; потребує year і month. Доступні значення є в meta.calendar.days.", "schema": {"type": "integer", "minimum": 1, "maximum": 31}, "example": 30},
      "ArchiveHour": {"name": "hour", "in": "query", "description": "Година 0…23 за Europe/Kyiv; потребує повну дату. Доступні значення є в meta.calendar.hours.", "schema": {"type": "integer", "minimum": 0, "maximum": 23}, "example": 16},
      "ArchiveOrder": {"name": "order", "in": "query", "description": "Спочатку нові (desc) або спочатку старі (asc): час знімка, потім ID у тому самому напрямі. Не впливає на календар, кількість чи вибір останнього знімка кожної камери. Інші значення повертають 422.", "schema": {"type": "string", "enum": ["desc", "asc"], "default": "desc"}, "example": "asc"},
      "IdempotencyKey": {"name": "Idempotency-Key", "in": "header", "required": true, "description": "Унікальний ключ операції. Повтор до завершення сесії не списує токени вдруге; для продовження після expiry потрібен новий ключ.", "schema": {"type": "string", "minLength": 8, "maxLength": 128, "pattern": "^[A-Za-z0-9._:-]+$"}, "example": "player-drahobrat-20260830-001"},
      "Language": {"name": "lang", "in": "query", "description": "Мова локалізованих полів", "schema": {"type": "string", "enum": ["uk", "en", "pl"], "default": "uk"}},
      "Page": {"name": "page", "in": "query", "schema": {"type": "integer", "minimum": 1, "default": 1}},
      "PerPage": {"name": "per_page", "in": "query", "schema": {"type": "integer", "minimum": 1, "maximum": 100, "default": 20}}
    },
    "responses": {
      "BadRequest": {"description": "Некоректний або відсутній Idempotency-Key", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}}}},
      "Unauthorized": {"description": "Ключ відсутній або недійсний", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}}}},
      "QuotaExceeded": {"description": "Токенів недостатньо для операції або баланс вичерпано", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}}}},
      "NotFound": {"description": "Ресурс не знайдено", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}}}},
      "Conflict": {"description": "Idempotency-Key уже використано для іншої або завершеної HLS-сесії", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}}}},
      "ValidationError": {"description": "Некоректні query-параметри", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrorResponse"}}}}
    },
    "schemas": {
      "ResortCommentsResponse": {
        "type": "object",
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CatalogComment"
            }
          },
          "meta": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Meta"
              },
              {
                "type": "object",
                "required": [
                  "resort_slug",
                  "comments_count",
                  "pagination"
                ],
                "properties": {
                  "resort_slug": {
                    "type": "string"
                  },
                  "webcam_id": {
                    "type": "integer",
                    "description": "Присутнє лише для маршруту камери."
                  },
                  "comments_count": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Кількість вузлів усіх публічних дерев, включно з прихованими батьківськими заглушками, незалежно від сторінки."
                  },
                  "pagination": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Pagination"
                      }
                    ],
                    "description": "total — кількість верхніх коментарів після фільтрації."
                  }
                }
              }
            ]
          }
        }
      },
      "Meta": {
        "type": "object",
        "properties": {
          "request_id": {"type": "string"},
          "language": {"type": "string"},
          "token_cost": {"type": "integer", "minimum": 1},
          "tokens_charged": {"type": "integer", "minimum": 0},
          "tokens_remaining": {"type": ["integer", "null"], "minimum": 0}
        }
      },
      "Pagination": {
        "type": "object",
        "properties": {"page": {"type": "integer"}, "per_page": {"type": "integer"}, "total": {"type": "integer"}, "pages": {"type": "integer"}}
      },
      "Coordinates": {
        "type": ["object", "null"],
        "properties": {"latitude": {"type": "number"}, "longitude": {"type": "number"}}
      },
      "Resort": {
        "type": "object",
        "required": ["id", "slug", "name", "elevation", "lifts", "features", "availability", "region", "cover_image_url", "weather_summary", "station_observations"],
        "properties": {
          "id": {"type": "integer"},
          "slug": {"type": "string"},
          "name": {"type": "string"},
          "description": {"type": ["string", "null"]},
          "coordinates": {"$ref": "#/components/schemas/Coordinates"},
          "elevation": {"type": "object", "properties": {"bottom_m": {"type": ["integer", "null"]}, "top_m": {"type": ["integer", "null"]}}},
          "lifts": {"type": "object", "properties": {"drag": {"type": "integer"}, "chair": {"type": "integer"}, "multi": {"type": "integer"}}},
          "features": {"type": "object", "properties": {"ski": {"type": "boolean"}, "tubing": {"type": "boolean"}, "freeride": {"type": "boolean"}}},
          "availability": {"$ref": "#/components/schemas/ResortAvailability"},
          "region": {"$ref": "#/components/schemas/ResortRegion"},
          "cover_image_url": {
            "type": ["string", "null"],
            "format": "uri",
            "pattern": "^https://",
            "description": "Збережений знімок камери курорту. Драгобрат: спочатку online-камера, потім найновіша дата архіву; за відсутності кадрів online-камер — найновіший кадр offline-камери. Решта курортів: попередній порядок камер priority DESC, id ASC. Банери hero не використовуються. Архівний знімок не означає поточний стан схилу. Немає реального фото — null; загальні заглушки, рендери і HLS не використовуються. Джерела та обмеження: api/RESORT_HOME.md.",
            "examples": ["https://i.snih.info/archive/151/2026/09/09/10/last.jpg", "https://i.snih.info/archive/120/2026/09/08/16/last.jpg", null]
          },
          "weather_summary": {"$ref": "#/components/schemas/ResortWeatherSummary"},
          "station_observations": {"$ref": "#/components/schemas/StationObservations"}
        },
        "examples": [
          {
            "id": 136,
            "slug": "drahobrat",
            "name": "Драгобрат",
            "description": "Драгобрат - найвисокогірніший гірськолижний курорт України, розташований у Карпатах на висоті 1400 м. Відомий своїми природними пейзажами, широким вибором трас для лижників і сноубордистів різного рівня, а також можливостями для фрірайду. Ідеальне місце для зимового відпочинку.",
            "coordinates": {"latitude": 48.248565, "longitude": 24.238722},
            "elevation": {"bottom_m": 1240, "top_m": 1710},
            "lifts": {"drag": 6, "chair": 2, "multi": 5},
            "features": {"ski": true, "tubing": false, "freeride": true},
            "availability": {
              "weather": {
                "available": true,
                "working": true,
                "status": "online",
                "source": "meteoblue",
                "endpoint": "/v1/resorts/drahobrat/weather",
                "updated_at": "2026-09-09T04:00:04+03:00",
                "next_update_at": "2026-09-09T12:00:00+03:00",
                "recommended_fetch_at": "2026-09-09T12:15:00+03:00"
              },
              "weather_station": {"available": true, "working": false, "status": "stale", "source": "davis_weatherlink", "updated_at": "2026-03-30T15:30:01+00:00"},
              "catalog": {"available": true, "total": 112, "places": 106, "services": 6},
              "photo_archive": {"available": true, "cameras": 11, "endpoint": "/v1/resorts/drahobrat/photo-archive"},
              "webcams": {"available": true, "working": true, "status": "partially_online", "online": 3, "offline": 8, "total": 11, "endpoint": "/v1/resorts/drahobrat/webcams"}
            },
            "region": {"name": "Закарпатська область"},
            "cover_image_url": "https://i.snih.info/archive/151/2026/09/09/10/last.jpg",
            "weather_summary": {
              "temperature_c": 11.72,
              "icon_url": null,
              "label": null,
              "status": "online",
              "time": "2026-09-09T06:00:42+03:00",
              "updated_at": "2026-09-09T03:07:30+00:00",
              "timezone": "Europe/Kyiv",
              "level": null
            },
            "station_observations": {
              "source": "davis_api_v2",
              "status": "online",
              "timezone": "Europe/Kyiv",
              "stale_after_seconds": 3600,
              "updated_at": "2026-09-09T03:07:30+00:00",
              "current": {
                "observed_at": "2026-09-09T03:00:42+00:00",
                "sensors": [
                  {
                    "type": "outdoor",
                    "measurements": {"temp": {"value": 11.72, "unit": "°C"}, "hum": {"value": 60.1, "unit": "%"}, "wind_speed_last": {"value": 1.341, "unit": "m/s"}},
                    "observed_at": "2026-09-09T03:00:42+00:00"
                  }
                ]
              },
              "last_observation": {
                "observed_at": "2026-09-09T03:00:42+00:00",
                "sensors": [
                  {
                    "type": "outdoor",
                    "measurements": {"temp": {"value": 11.72, "unit": "°C"}, "hum": {"value": 60.1, "unit": "%"}, "wind_speed_last": {"value": 1.341, "unit": "m/s"}},
                    "observed_at": "2026-09-09T03:00:42+00:00"
                  }
                ]
              }
            }
          },
          {
            "id": 173,
            "slug": "krokus",
            "name": "Крокус",
            "description": "Курорт Крокус у Львівській області пропонує відпочинок серед мальовничих Карпат. Гості можуть насолоджуватися гірськолижними трасами, СПА-процедурами та різноманітними розвагами. Ідеальне місце для активного та релаксуючого відпочинку.",
            "coordinates": {"latitude": 48.818058, "longitude": 23.447334},
            "elevation": {"bottom_m": 640, "top_m": 780},
            "lifts": {"drag": 0, "chair": 0, "multi": 0},
            "features": {"ski": true, "tubing": false, "freeride": false},
            "availability": {
              "weather": {
                "available": false,
                "working": false,
                "status": "unavailable",
                "source": null,
                "endpoint": null,
                "updated_at": null,
                "next_update_at": null,
                "recommended_fetch_at": null
              },
              "weather_station": {"available": false, "working": false, "status": "unavailable", "source": null, "updated_at": null},
              "catalog": {"available": false, "total": 0, "places": 0, "services": 0},
              "photo_archive": {"available": false, "cameras": 0, "endpoint": null},
              "webcams": {"available": true, "working": false, "status": "offline", "online": 0, "offline": 1, "total": 1, "endpoint": "/v1/resorts/krokus/webcams"}
            },
            "region": null,
            "cover_image_url": null,
            "weather_summary": {"temperature_c": null, "icon_url": null, "label": null, "status": "unavailable", "time": null, "updated_at": null, "timezone": "Europe/Kyiv", "level": null},
            "station_observations": {"source": null, "status": "unavailable", "timezone": "Europe/Kyiv", "stale_after_seconds": 3600, "updated_at": null, "current": null, "last_observation": null}
          }
        ]
      },
      "Service": {
        "type": "object",
        "required": [
          "id",
          "type",
          "name",
          "description",
          "contacts",
          "price",
          "updated_at",
          "url",
          "image_url",
          "phone_contacts",
          "media",
          "rating",
          "comments",
          "comments_count",
          "phones",
          "telegram_url",
          "instagram_url",
          "instructor",
          "transfer"
        ],
        "properties": {
          "id": {"type": "integer"},
          "type": {"type": "string", "enum": ["instructor", "transfer"]},
          "name": {"type": "string"},
          "description": {"type": ["string", "null"]},
          "contacts": {
            "type": "object",
            "required": ["phone", "telegram", "website_url", "instagram"],
            "properties": {
              "phone": {"type": ["string", "null"], "description": "Перший публічний номер service_phones за sort_order, id; за відсутності — services.phone."},
              "telegram": {"type": ["string", "null"]},
              "website_url": {"type": ["string", "null"]},
              "instagram": {"type": ["string", "null"]}
            }
          },
          "price": {
            "type": "object",
            "required": ["from", "currency", "mode"],
            "properties": {"from": {"type": ["integer", "null"]}, "currency": {"type": ["string", "null"]}, "mode": {"type": "string", "enum": ["fixed", "from", "negotiable"]}}
          },
          "updated_at": {"type": "string", "format": "date-time"},
          "url": {"type": ["string", "null"]},
          "image_url": {"type": ["string", "null"]},
          "phone_contacts": {"type": "array", "items": {"$ref": "#/components/schemas/CatalogPhone"}},
          "media": {"type": "array", "items": {"$ref": "#/components/schemas/CatalogMedia"}},
          "rating": {"$ref": "#/components/schemas/CatalogRating"},
          "comments": {"type": "array", "items": {"$ref": "#/components/schemas/CatalogComment"}},
          "comments_count": {"type": "integer"},
          "phones": {"type": "array", "items": {"type": "string"}},
          "telegram_url": {"type": ["string", "null"]},
          "instagram_url": {"type": ["string", "null"]},
          "instructor": {"oneOf": [{"$ref": "#/components/schemas/InstructorProfile"}, {"type": "null"}]},
          "transfer": {"oneOf": [{"$ref": "#/components/schemas/TransferProfile"}, {"type": "null"}]}
        },
        "description": "Сумісні базові поля v1 доповнено публічним профілем, усіма телефонами, галереєю, відгуками та рейтингом. Список містить маршрути поточного курорту; /services/{id} повертає всі активні маршрути перевізника, як сторінка сайту. Транспорт і його медіа — лише активні; службові ключі зберігання та приватні дані власника відсутні."
      },
      "ServiceListResponse": {
        "type": "object",
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Service"
            }
          },
          "meta": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Meta"
              },
              {
                "type": "object",
                "properties": {
                  "resort_slug": {
                    "type": "string"
                  },
                  "language": {
                    "type": "string"
                  },
                  "pagination": {
                    "$ref": "#/components/schemas/Pagination"
                  }
                }
              }
            ]
          }
        }
      },
      "CatalogPhone": {"type": "object", "properties": {"number": {"type": "string"}, "display": {"type": "string"}, "uri": {"type": "string"}}, "required": ["number", "display", "uri"]},
      "CatalogMedia": {
        "type": "object",
        "properties": {
          "id": {"type": "integer"},
          "type": {"type": "string", "enum": ["image", "video"]},
          "type_id": {"type": ["integer", "null"]},
          "url": {"type": ["string", "null"]},
          "thumb_url": {"type": ["string", "null"]},
          "title": {"type": ["string", "null"]},
          "alt": {"type": ["string", "null"]},
          "is_cover": {"type": "boolean"},
          "width": {"type": ["integer", "null"]},
          "height": {"type": ["integer", "null"]},
          "duration_ms": {"type": ["integer", "null"]},
          "mime_type": {"type": "string"},
          "thumb_width": {"type": ["integer", "null"]},
          "thumb_height": {"type": ["integer", "null"]}
        },
        "required": ["id", "type", "url", "thumb_url"]
      },
      "CatalogRating": {"type": "object", "properties": {"average": {"type": ["number", "null"]}, "count": {"type": "integer"}}, "required": ["average", "count"]},
      "CatalogComment": {
        "type": "object",
        "properties": {
          "id": {"type": "integer"},
          "parent_id": {"type": ["integer", "null"]},
          "context_id": {"type": "integer"},
          "body": {"type": ["string", "null"]},
          "rating": {"type": ["integer", "null"]},
          "hidden": {"type": "boolean"},
          "created_at": {"type": ["string", "null"]},
          "author": {
            "type": "object",
            "properties": {"name": {"type": ["string", "null"]}, "avatar_url": {"type": ["string", "null"]}, "is_service_owner": {"type": "boolean"}, "is_pro": {"type": "boolean"}},
            "required": ["name", "avatar_url", "is_service_owner", "is_pro"]
          },
          "votes_up": {"type": "integer"},
          "votes_down": {"type": "integer"},
          "media": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {"type": {"type": "string"}, "url": {"type": ["string", "null"]}, "thumb_url": {"type": ["string", "null"]}},
              "required": ["type", "url", "thumb_url"]
            }
          },
          "children": {"type": "array", "items": {"$ref": "#/components/schemas/CatalogComment"}}
        },
        "required": ["id", "parent_id", "context_id", "body", "rating", "hidden", "created_at", "author", "votes_up", "votes_down", "media", "children"],
        "description": "Публічні коментарі з усіх контекстів об’єкта; context_id для місць відповідає категорії. При hidden=true текст, оцінка і медіа приховані; вузол залишається лише за наявності видимих відповідей. DEV-коментарі не повертаються."
      },
      "PlaceCategory": {
        "type": "object",
        "properties": {
          "id": {"type": "integer"},
          "parent_id": {"type": ["integer", "null"]},
          "slug": {"type": "string"},
          "name": {"type": "string"},
          "singular_name": {"type": ["string", "null"]},
          "icon_svg": {"type": ["string", "null"]},
          "display_name": {"type": "string"},
          "url": {"type": "string"}
        },
        "required": ["id", "parent_id", "slug", "name", "singular_name", "icon_svg", "display_name", "url"]
      },
      "PlaceReference": {
        "type": "object",
        "properties": {
          "id": {"type": "integer"},
          "name": {"type": "string"},
          "slug": {"type": "string"},
          "type_id": {"type": "integer"},
          "type_name": {"type": ["string", "null"]},
          "url": {"type": "string"},
          "distance_m": {"type": ["integer", "null"]}
        },
        "required": ["id", "name", "slug", "type_id", "type_name", "url"]
      },
      "CatalogPricelist": {
        "type": "object",
        "properties": {
          "id": {"type": "integer"},
          "season_label": {"type": "string"},
          "season_start": {"type": ["string", "null"]},
          "season_end": {"type": ["string", "null"]},
          "url": {"type": ["string", "null"]},
          "mime_type": {"type": "string"},
          "description": {"type": ["string", "null"]},
          "is_current": {"type": "boolean"}
        },
        "required": ["id", "season_label", "season_start", "season_end", "url", "mime_type", "description", "is_current"]
      },
      "PlaceAccommodationAttributes": {
        "type": "object",
        "properties": {
          "accommodation_type_id": {"type": ["integer", "null"]},
          "booking_bookingcom_url": {"type": ["string", "null"]},
          "booking_hotels24_url": {"type": ["string", "null"]},
          "booking_hours": {"type": ["string", "null"]},
          "booking_instagram": {"type": ["string", "null"]},
          "booking_phone": {"type": ["string", "null"]},
          "booking_phones": {"type": "array", "items": {"type": "string"}},
          "booking_telegram": {"type": ["string", "null"]},
          "booking_viber": {"type": ["string", "null"]},
          "capacity": {"type": ["integer", "null"]},
          "description": {"type": ["string", "null"]},
          "has_buffet": {"type": ["boolean", "null"]},
          "has_kids_room": {"type": ["boolean", "null"]},
          "has_playground_outdoor": {"type": ["boolean", "null"]},
          "has_pool_indoor": {"type": ["boolean", "null"]},
          "has_pool_outdoor": {"type": ["boolean", "null"]},
          "payment_type": {"type": ["string", "null"]},
          "pets_friendly_all": {"type": ["string", "null"]},
          "pets_friendly_desc": {"type": ["string", "null"]},
          "pool_operates_in_winter": {"type": ["boolean", "null"]},
          "rooms_count": {"type": ["integer", "null"]},
          "phone_contacts": {"type": "array", "items": {"$ref": "#/components/schemas/CatalogPhone"}}
        },
        "required": [
          "accommodation_type_id",
          "booking_bookingcom_url",
          "booking_hotels24_url",
          "booking_hours",
          "booking_instagram",
          "booking_phone",
          "booking_phones",
          "booking_telegram",
          "booking_viber",
          "capacity",
          "description",
          "has_buffet",
          "has_kids_room",
          "has_playground_outdoor",
          "has_pool_indoor",
          "has_pool_outdoor",
          "payment_type",
          "pets_friendly_all",
          "pets_friendly_desc",
          "pool_operates_in_winter",
          "rooms_count",
          "phone_contacts"
        ],
        "additionalProperties": false
      },
      "PlaceBathAttributes": {
        "type": "object",
        "properties": {
          "amenities": {"type": "array", "items": {"type": "string"}},
          "booking_hours": {"type": ["string", "null"]},
          "booking_phone": {"type": ["string", "null"]},
          "booking_phones": {"type": "array", "items": {"type": "string"}},
          "booking_telegram": {"type": ["string", "null"]},
          "booking_viber": {"type": ["string", "null"]},
          "capacity": {"type": ["integer", "null"]},
          "description": {"type": ["string", "null"]},
          "has_cold_pool": {"type": ["boolean", "null"]},
          "has_relax_room": {"type": ["boolean", "null"]},
          "has_shower": {"type": ["boolean", "null"]},
          "heating_time_minutes": {"type": ["integer", "null"]},
          "heating_type": {"type": ["string", "null"]},
          "material": {"type": ["string", "null"]},
          "max_temperature_c": {"type": ["integer", "null"]},
          "min_booking_hours": {"type": ["integer", "null"]},
          "price_per_hour": {"type": ["number", "null"]},
          "water_volume_liters": {"type": ["integer", "null"]},
          "phone_contacts": {"type": "array", "items": {"$ref": "#/components/schemas/CatalogPhone"}}
        },
        "required": [
          "amenities",
          "booking_hours",
          "booking_phone",
          "booking_phones",
          "booking_telegram",
          "booking_viber",
          "capacity",
          "description",
          "has_cold_pool",
          "has_relax_room",
          "has_shower",
          "heating_time_minutes",
          "heating_type",
          "material",
          "max_temperature_c",
          "min_booking_hours",
          "price_per_hour",
          "water_volume_liters",
          "phone_contacts"
        ],
        "additionalProperties": false
      },
      "PlaceSpaAttributes": {
        "type": "object",
        "properties": {"access_type": {"type": ["string", "null"]}, "booking_required": {"type": ["boolean", "null"]}, "services": {"type": "array", "items": {"type": "string"}}},
        "required": ["access_type", "booking_required", "services"],
        "additionalProperties": false
      },
      "PlaceTubAttributes": {
        "type": "object",
        "properties": {
          "amenities": {"type": "array", "items": {"type": "string"}},
          "booking_hours": {"type": ["string", "null"]},
          "booking_phone": {"type": ["string", "null"]},
          "booking_phones": {"type": "array", "items": {"type": "string"}},
          "booking_telegram": {"type": ["string", "null"]},
          "booking_viber": {"type": ["string", "null"]},
          "capacity": {"type": ["integer", "null"]},
          "description": {"type": ["string", "null"]},
          "has_bubbles": {"type": ["boolean", "null"]},
          "has_lid": {"type": ["boolean", "null"]},
          "heating_time_minutes": {"type": ["integer", "null"]},
          "heating_type": {"type": ["string", "null"]},
          "material": {"type": ["string", "null"]},
          "max_temperature_c": {"type": ["integer", "null"]},
          "min_booking_hours": {"type": ["integer", "null"]},
          "payment_type": {"type": ["string", "null"]},
          "price_per_hour": {"type": ["number", "null"]},
          "water_volume_liters": {"type": ["integer", "null"]},
          "phone_contacts": {"type": "array", "items": {"$ref": "#/components/schemas/CatalogPhone"}}
        },
        "required": [
          "amenities",
          "booking_hours",
          "booking_phone",
          "booking_phones",
          "booking_telegram",
          "booking_viber",
          "capacity",
          "description",
          "has_bubbles",
          "has_lid",
          "heating_time_minutes",
          "heating_type",
          "material",
          "max_temperature_c",
          "min_booking_hours",
          "payment_type",
          "price_per_hour",
          "water_volume_liters",
          "phone_contacts"
        ],
        "additionalProperties": false
      },
      "PlaceTubingAttributes": {
        "type": "object",
        "properties": {
          "amenities": {"type": "array", "items": {"type": "string"}},
          "booking_phone": {"type": ["string", "null"]},
          "booking_phones": {"type": "array", "items": {"type": "string"}},
          "booking_required": {"type": ["boolean", "null"]},
          "booking_telegram": {"type": ["string", "null"]},
          "booking_viber": {"type": ["string", "null"]},
          "close_time": {"type": ["string", "null"]},
          "currency": {"type": ["string", "null"]},
          "description": {"type": ["string", "null"]},
          "max_players": {"type": ["integer", "null"]},
          "notes": {"type": ["string", "null"]},
          "open_time": {"type": ["string", "null"]},
          "price_per_game": {"type": ["number", "null"]},
          "price_per_hour": {"type": ["number", "null"]},
          "phone_contacts": {"type": "array", "items": {"$ref": "#/components/schemas/CatalogPhone"}}
        },
        "required": [
          "amenities",
          "booking_phone",
          "booking_phones",
          "booking_required",
          "booking_telegram",
          "booking_viber",
          "close_time",
          "currency",
          "description",
          "max_players",
          "notes",
          "open_time",
          "price_per_game",
          "price_per_hour",
          "phone_contacts"
        ],
        "additionalProperties": false
      },
      "PlaceEntertainmentAttributes": {
        "type": "object",
        "properties": {
          "amenities": {"type": "array", "items": {"type": "string"}},
          "booking_phone": {"type": ["string", "null"]},
          "booking_phones": {"type": "array", "items": {"type": "string"}},
          "booking_required": {"type": ["boolean", "null"]},
          "booking_telegram": {"type": ["string", "null"]},
          "booking_viber": {"type": ["string", "null"]},
          "close_time": {"type": ["string", "null"]},
          "currency": {"type": ["string", "null"]},
          "description": {"type": ["string", "null"]},
          "max_players": {"type": ["integer", "null"]},
          "notes": {"type": ["string", "null"]},
          "open_time": {"type": ["string", "null"]},
          "price_per_game": {"type": ["number", "null"]},
          "price_per_hour": {"type": ["number", "null"]},
          "phone_contacts": {"type": "array", "items": {"$ref": "#/components/schemas/CatalogPhone"}}
        },
        "required": [
          "amenities",
          "booking_phone",
          "booking_phones",
          "booking_required",
          "booking_telegram",
          "booking_viber",
          "close_time",
          "currency",
          "description",
          "max_players",
          "notes",
          "open_time",
          "price_per_game",
          "price_per_hour",
          "phone_contacts"
        ],
        "additionalProperties": false
      },
      "PlaceLiftAttributes": {
        "type": "object",
        "properties": {
          "avg_speed_mps": {"type": ["number", "null"]},
          "bubble": {"type": ["boolean", "null"]},
          "capacity_per_hour": {"type": ["integer", "null"]},
          "carrier_capacity": {"type": ["integer", "null"]},
          "description": {"type": ["string", "null"]},
          "detachable": {"type": ["boolean", "null"]},
          "duration_sec": {"type": ["integer", "null"]},
          "length_m": {"type": ["integer", "null"]},
          "lift_kind": {"type": ["string", "null"]},
          "manufacturer": {"type": ["string", "null"]},
          "night": {"type": ["boolean", "null"]},
          "vertical_gain_m": {"type": ["integer", "null"]},
          "year_built": {"type": ["integer", "null"]}
        },
        "required": [
          "avg_speed_mps",
          "bubble",
          "capacity_per_hour",
          "carrier_capacity",
          "description",
          "detachable",
          "duration_sec",
          "length_m",
          "lift_kind",
          "manufacturer",
          "night",
          "vertical_gain_m",
          "year_built"
        ],
        "additionalProperties": false
      },
      "PlaceTicketOfficeAttributes": {
        "type": "object",
        "properties": {
          "description": {"type": ["string", "null"]},
          "lift_ids": {"type": "array", "items": {"type": "integer"}},
          "supports_card": {"type": ["boolean", "null"]},
          "work_hours": {"type": "object", "additionalProperties": {"type": ["string", "null"]}},
          "lifts": {"type": "array", "items": {"$ref": "#/components/schemas/PlaceReference"}}
        },
        "required": ["description", "lift_ids", "supports_card", "work_hours", "lifts"],
        "additionalProperties": false
      },
      "PlaceFoodAttributes": {
        "type": "object",
        "properties": {
          "alcohol_license": {"type": ["string", "null"]},
          "amenities": {"type": "array", "items": {"type": "string"}},
          "avg_check": {"type": ["number", "null"]},
          "avg_wait_time_min": {"type": ["integer", "null"]},
          "booking_hours": {"type": ["string", "null"]},
          "booking_phone": {"type": ["string", "null"]},
          "booking_phones": {"type": "array", "items": {"type": "string"}},
          "booking_telegram": {"type": ["string", "null"]},
          "booking_viber": {"type": ["string", "null"]},
          "close_time": {"type": ["string", "null"]},
          "cuisines": {"type": "array", "items": {"type": "string"}},
          "delivery_partners": {"type": "array", "items": {"type": "string"}},
          "description": {"type": ["string", "null"]},
          "diet_options": {"type": "array", "items": {"type": "string"}},
          "has_alcohol": {"type": ["boolean", "null"]},
          "has_board_games": {"type": ["boolean", "null"]},
          "has_craft_beer": {"type": ["boolean", "null"]},
          "has_delivery": {"type": ["boolean", "null"]},
          "has_hookah": {"type": ["boolean", "null"]},
          "has_kids_area": {"type": ["boolean", "null"]},
          "has_live_music": {"type": ["boolean", "null"]},
          "has_takeaway": {"type": ["boolean", "null"]},
          "has_terrace": {"type": ["boolean", "null"]},
          "instagram_url": {"type": ["string", "null"]},
          "is_pet_friendly": {"type": ["boolean", "null"]},
          "max_capacity": {"type": ["integer", "null"]},
          "menu_url": {"type": ["string", "null"]},
          "notes": {"type": ["string", "null"]},
          "open_time": {"type": ["string", "null"]},
          "payment_methods": {"type": "array", "items": {"type": "string"}},
          "payment_type": {"type": ["string", "null"]},
          "price_level": {"type": ["string", "null"]},
          "reservation_needed": {"type": ["boolean", "null"]},
          "season_end_month": {"type": ["integer", "null"]},
          "season_start_month": {"type": ["integer", "null"]},
          "seats_indoor": {"type": ["integer", "null"]},
          "seats_outdoor": {"type": ["integer", "null"]},
          "service_charge_pct": {"type": ["integer", "null"]},
          "service_model": {"type": ["string", "null"]},
          "phone_contacts": {"type": "array", "items": {"$ref": "#/components/schemas/CatalogPhone"}}
        },
        "required": [
          "alcohol_license",
          "amenities",
          "avg_check",
          "avg_wait_time_min",
          "booking_hours",
          "booking_phone",
          "booking_phones",
          "booking_telegram",
          "booking_viber",
          "close_time",
          "cuisines",
          "delivery_partners",
          "description",
          "diet_options",
          "has_alcohol",
          "has_board_games",
          "has_craft_beer",
          "has_delivery",
          "has_hookah",
          "has_kids_area",
          "has_live_music",
          "has_takeaway",
          "has_terrace",
          "instagram_url",
          "is_pet_friendly",
          "max_capacity",
          "menu_url",
          "notes",
          "open_time",
          "payment_methods",
          "payment_type",
          "price_level",
          "reservation_needed",
          "season_end_month",
          "season_start_month",
          "seats_indoor",
          "seats_outdoor",
          "service_charge_pct",
          "service_model",
          "phone_contacts"
        ],
        "additionalProperties": false
      },
      "PlaceCheburechnayaAttributes": {
        "type": "object",
        "properties": {
          "amenities": {"type": "array", "items": {"type": "string"}},
          "avg_check": {"type": ["number", "null"]},
          "avg_wait_time_min": {"type": ["integer", "null"]},
          "booking_hours": {"type": ["string", "null"]},
          "booking_phone": {"type": ["string", "null"]},
          "booking_telegram": {"type": ["string", "null"]},
          "close_time": {"type": ["string", "null"]},
          "cuisines": {"type": "array", "items": {"type": "string"}},
          "description": {"type": ["string", "null"]},
          "diet_options": {"type": "array", "items": {"type": "string"}},
          "has_board_games": {"type": ["boolean", "null"]},
          "has_kids_area": {"type": ["boolean", "null"]},
          "has_takeaway": {"type": ["boolean", "null"]},
          "has_terrace": {"type": ["boolean", "null"]},
          "instagram_url": {"type": ["string", "null"]},
          "is_pet_friendly": {"type": ["boolean", "null"]},
          "main_cuisine": {"type": ["string", "null"]},
          "max_capacity": {"type": ["integer", "null"]},
          "menu_url": {"type": ["string", "null"]},
          "notes": {"type": ["string", "null"]},
          "open_time": {"type": ["string", "null"]},
          "payment_methods": {"type": "array", "items": {"type": "string"}},
          "payment_type": {"type": ["string", "null"]},
          "price_level": {"type": ["string", "null"]},
          "reservation_needed": {"type": ["boolean", "null"]},
          "seats_indoor": {"type": ["integer", "null"]},
          "seats_outdoor": {"type": ["integer", "null"]},
          "service_model": {"type": ["string", "null"]}
        },
        "required": [
          "amenities",
          "avg_check",
          "avg_wait_time_min",
          "booking_hours",
          "booking_phone",
          "booking_telegram",
          "close_time",
          "cuisines",
          "description",
          "diet_options",
          "has_board_games",
          "has_kids_area",
          "has_takeaway",
          "has_terrace",
          "instagram_url",
          "is_pet_friendly",
          "main_cuisine",
          "max_capacity",
          "menu_url",
          "notes",
          "open_time",
          "payment_methods",
          "payment_type",
          "price_level",
          "reservation_needed",
          "seats_indoor",
          "seats_outdoor",
          "service_model"
        ],
        "additionalProperties": false
      },
      "PlaceShopAttributes": {
        "type": "object",
        "properties": {
          "description": {"type": ["string", "null"]},
          "has_delivery": {"type": ["boolean", "null"]},
          "opening_hours": {"type": ["string", "null"]},
          "payment_type": {"type": ["string", "null"]}
        },
        "required": ["description", "has_delivery", "opening_hours", "payment_type"],
        "additionalProperties": false
      },
      "PlacePharmacyAttributes": {
        "type": "object",
        "properties": {
          "description": {"type": ["string", "null"]},
          "has_delivery": {"type": ["boolean", "null"]},
          "opening_hours": {"type": ["string", "null"]},
          "payment_type": {"type": ["string", "null"]}
        },
        "required": ["description", "has_delivery", "opening_hours", "payment_type"],
        "additionalProperties": false
      },
      "PlaceRentalAttributes": {
        "type": "object",
        "properties": {
          "booking_hours": {"type": ["string", "null"]},
          "booking_phone": {"type": ["string", "null"]},
          "booking_phones": {"type": "array", "items": {"type": "string"}},
          "booking_telegram": {"type": ["string", "null"]},
          "booking_viber": {"type": ["string", "null"]},
          "brand": {"type": ["string", "null"]},
          "description": {"type": ["string", "null"]},
          "model": {"type": ["string", "null"]},
          "notes": {"type": ["string", "null"]},
          "payment_type": {"type": ["string", "null"]},
          "price_per_day": {"type": ["number", "null"]},
          "price_per_hour": {"type": ["number", "null"]},
          "quantity_available": {"type": ["integer", "null"]},
          "rental_bike": {"type": ["boolean", "null"]},
          "rental_clothes": {"type": ["boolean", "null"]},
          "rental_glasses": {"type": ["boolean", "null"]},
          "rental_helmet": {"type": ["boolean", "null"]},
          "rental_ski": {"type": ["boolean", "null"]},
          "rental_sled": {"type": ["boolean", "null"]},
          "rental_snowboard": {"type": ["boolean", "null"]},
          "size": {"type": ["string", "null"]},
          "phone_contacts": {"type": "array", "items": {"$ref": "#/components/schemas/CatalogPhone"}}
        },
        "required": [
          "booking_hours",
          "booking_phone",
          "booking_phones",
          "booking_telegram",
          "booking_viber",
          "brand",
          "description",
          "model",
          "notes",
          "payment_type",
          "price_per_day",
          "price_per_hour",
          "quantity_available",
          "rental_bike",
          "rental_clothes",
          "rental_glasses",
          "rental_helmet",
          "rental_ski",
          "rental_sled",
          "rental_snowboard",
          "size",
          "phone_contacts"
        ],
        "additionalProperties": false
      },
      "PlaceNightlifeAttributes": {
        "type": "object",
        "properties": {
          "amenities": {"type": "array", "items": {"type": "string"}},
          "booking_hours": {"type": ["string", "null"]},
          "booking_phone": {"type": ["string", "null"]},
          "booking_phones": {"type": "array", "items": {"type": "string"}},
          "booking_telegram": {"type": ["string", "null"]},
          "booking_viber": {"type": ["string", "null"]},
          "capacity": {"type": ["integer", "null"]},
          "close_time": {"type": ["string", "null"]},
          "dancefloor_area_m2": {"type": ["integer", "null"]},
          "description": {"type": ["string", "null"]},
          "dress_code": {"type": ["string", "null"]},
          "entry_fee_from": {"type": ["number", "null"]},
          "face_control": {"type": ["boolean", "null"]},
          "facebook_url": {"type": ["string", "null"]},
          "has_dj": {"type": ["boolean", "null"]},
          "has_hookah": {"type": ["boolean", "null"]},
          "has_karaoke": {"type": ["boolean", "null"]},
          "has_live_music": {"type": ["boolean", "null"]},
          "instagram_url": {"type": ["string", "null"]},
          "min_table_spend": {"type": ["number", "null"]},
          "music_genres": {"type": "array", "items": {"type": "string"}},
          "notes": {"type": ["string", "null"]},
          "open_time": {"type": ["string", "null"]},
          "payment_type": {"type": ["string", "null"]},
          "price_level": {"type": ["string", "null"]},
          "season_end_month": {"type": ["integer", "null"]},
          "season_start_month": {"type": ["integer", "null"]},
          "seats_tables": {"type": ["integer", "null"]},
          "vip_tables": {"type": ["integer", "null"]},
          "website_events_url": {"type": ["string", "null"]},
          "phone_contacts": {"type": "array", "items": {"$ref": "#/components/schemas/CatalogPhone"}}
        },
        "required": [
          "amenities",
          "booking_hours",
          "booking_phone",
          "booking_phones",
          "booking_telegram",
          "booking_viber",
          "capacity",
          "close_time",
          "dancefloor_area_m2",
          "description",
          "dress_code",
          "entry_fee_from",
          "face_control",
          "facebook_url",
          "has_dj",
          "has_hookah",
          "has_karaoke",
          "has_live_music",
          "instagram_url",
          "min_table_spend",
          "music_genres",
          "notes",
          "open_time",
          "payment_type",
          "price_level",
          "season_end_month",
          "season_start_month",
          "seats_tables",
          "vip_tables",
          "website_events_url",
          "phone_contacts"
        ],
        "additionalProperties": false
      },
      "PlaceFreerideServiceAttributes": {
        "type": "object",
        "properties": {
          "avg_response_time_h": {"type": ["integer", "null"]},
          "booking_hours": {"type": ["string", "null"]},
          "booking_phone": {"type": ["string", "null"]},
          "booking_phones": {"type": "array", "items": {"type": "string"}},
          "booking_telegram": {"type": ["string", "null"]},
          "booking_url": {"type": ["string", "null"]},
          "booking_viber": {"type": ["string", "null"]},
          "cancellation_policy": {"type": ["string", "null"]},
          "currency": {"type": ["string", "null"]},
          "description": {"type": ["string", "null"]},
          "emergency_plan_note": {"type": ["string", "null"]},
          "experience_levels": {"type": "array", "items": {"type": "string"}},
          "facebook": {"type": ["string", "null"]},
          "gear_provided": {"type": "array", "items": {"type": "string"}},
          "gear_rental": {"type": "array", "items": {"type": "string"}},
          "guide_certifications": {"type": "array", "items": {"type": "string"}},
          "guide_languages": {"type": "array", "items": {"type": "string"}},
          "guide_to_client_ratio": {"type": ["string", "null"]},
          "has_company_insurance": {"type": ["boolean", "null"]},
          "instagram": {"type": ["string", "null"]},
          "insurance_details": {"type": ["string", "null"]},
          "max_group_size": {"type": ["integer", "null"]},
          "min_booking_hours": {"type": ["integer", "null"]},
          "notes": {"type": ["string", "null"]},
          "payment_type": {"type": ["string", "null"]},
          "price_from": {"type": ["number", "null"]},
          "pricing_model": {"type": ["string", "null"]},
          "resort_ids_json": {"type": "array", "items": {"type": "integer"}},
          "safety_policy_url": {"type": ["string", "null"]},
          "season_end_month": {"type": ["integer", "null"]},
          "season_start_month": {"type": ["integer", "null"]},
          "service_area_text": {"type": ["string", "null"]},
          "services": {"type": "array", "items": {"type": "string"}},
          "transport_modes": {"type": "array", "items": {"type": "string"}},
          "website_url": {"type": ["string", "null"]},
          "youtube": {"type": ["string", "null"]},
          "phone_contacts": {"type": "array", "items": {"$ref": "#/components/schemas/CatalogPhone"}}
        },
        "required": [
          "avg_response_time_h",
          "booking_hours",
          "booking_phone",
          "booking_phones",
          "booking_telegram",
          "booking_url",
          "booking_viber",
          "cancellation_policy",
          "currency",
          "description",
          "emergency_plan_note",
          "experience_levels",
          "facebook",
          "gear_provided",
          "gear_rental",
          "guide_certifications",
          "guide_languages",
          "guide_to_client_ratio",
          "has_company_insurance",
          "instagram",
          "insurance_details",
          "max_group_size",
          "min_booking_hours",
          "notes",
          "payment_type",
          "price_from",
          "pricing_model",
          "resort_ids_json",
          "safety_policy_url",
          "season_end_month",
          "season_start_month",
          "service_area_text",
          "services",
          "transport_modes",
          "website_url",
          "youtube",
          "phone_contacts"
        ],
        "additionalProperties": false
      },
      "PlaceDetails": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type_id": {"type": "integer"},
              "profile": {"const": "accommodation", "type": "string"},
              "attributes": {"$ref": "#/components/schemas/PlaceAccommodationAttributes"}
            },
            "required": ["type_id", "profile", "attributes"]
          },
          {
            "type": "object",
            "properties": {"type_id": {"type": "integer"}, "profile": {"const": "bath", "type": "string"}, "attributes": {"$ref": "#/components/schemas/PlaceBathAttributes"}},
            "required": ["type_id", "profile", "attributes"]
          },
          {
            "type": "object",
            "properties": {"type_id": {"type": "integer"}, "profile": {"const": "spa", "type": "string"}, "attributes": {"$ref": "#/components/schemas/PlaceSpaAttributes"}},
            "required": ["type_id", "profile", "attributes"]
          },
          {
            "type": "object",
            "properties": {"type_id": {"type": "integer"}, "profile": {"const": "tub", "type": "string"}, "attributes": {"$ref": "#/components/schemas/PlaceTubAttributes"}},
            "required": ["type_id", "profile", "attributes"]
          },
          {
            "type": "object",
            "properties": {"type_id": {"type": "integer"}, "profile": {"const": "tubing", "type": "string"}, "attributes": {"$ref": "#/components/schemas/PlaceTubingAttributes"}},
            "required": ["type_id", "profile", "attributes"]
          },
          {
            "type": "object",
            "properties": {
              "type_id": {"type": "integer"},
              "profile": {"const": "entertainment", "type": "string"},
              "attributes": {"$ref": "#/components/schemas/PlaceEntertainmentAttributes"}
            },
            "required": ["type_id", "profile", "attributes"]
          },
          {
            "type": "object",
            "properties": {"type_id": {"type": "integer"}, "profile": {"const": "lift", "type": "string"}, "attributes": {"$ref": "#/components/schemas/PlaceLiftAttributes"}},
            "required": ["type_id", "profile", "attributes"]
          },
          {
            "type": "object",
            "properties": {
              "type_id": {"type": "integer"},
              "profile": {"const": "ticket_office", "type": "string"},
              "attributes": {"$ref": "#/components/schemas/PlaceTicketOfficeAttributes"}
            },
            "required": ["type_id", "profile", "attributes"]
          },
          {
            "type": "object",
            "properties": {"type_id": {"type": "integer"}, "profile": {"const": "food", "type": "string"}, "attributes": {"$ref": "#/components/schemas/PlaceFoodAttributes"}},
            "required": ["type_id", "profile", "attributes"]
          },
          {
            "type": "object",
            "properties": {
              "type_id": {"type": "integer"},
              "profile": {"const": "cheburechnaya", "type": "string"},
              "attributes": {"$ref": "#/components/schemas/PlaceCheburechnayaAttributes"}
            },
            "required": ["type_id", "profile", "attributes"]
          },
          {
            "type": "object",
            "properties": {"type_id": {"type": "integer"}, "profile": {"const": "shop", "type": "string"}, "attributes": {"$ref": "#/components/schemas/PlaceShopAttributes"}},
            "required": ["type_id", "profile", "attributes"]
          },
          {
            "type": "object",
            "properties": {"type_id": {"type": "integer"}, "profile": {"const": "pharmacy", "type": "string"}, "attributes": {"$ref": "#/components/schemas/PlacePharmacyAttributes"}},
            "required": ["type_id", "profile", "attributes"]
          },
          {
            "type": "object",
            "properties": {"type_id": {"type": "integer"}, "profile": {"const": "rental", "type": "string"}, "attributes": {"$ref": "#/components/schemas/PlaceRentalAttributes"}},
            "required": ["type_id", "profile", "attributes"]
          },
          {
            "type": "object",
            "properties": {"type_id": {"type": "integer"}, "profile": {"const": "nightlife", "type": "string"}, "attributes": {"$ref": "#/components/schemas/PlaceNightlifeAttributes"}},
            "required": ["type_id", "profile", "attributes"]
          },
          {
            "type": "object",
            "properties": {
              "type_id": {"type": "integer"},
              "profile": {"const": "freeride_service", "type": "string"},
              "attributes": {"$ref": "#/components/schemas/PlaceFreerideServiceAttributes"}
            },
            "required": ["type_id", "profile", "attributes"]
          }
        ],
        "description": "Характеристики відповідної категорії з публічної сторінки сайту. Невідомі значення — null, списки — масиви, прапорці — boolean/null; жодних сирих записів БД."
      },
      "Place": {
        "type": "object",
        "properties": {
          "id": {"type": "integer"},
          "slug": {"type": "string"},
          "name": {"type": "string"},
          "brand": {"type": ["string", "null"]},
          "description": {"type": ["string", "null"]},
          "address": {"type": ["string", "null"]},
          "website_url": {"type": ["string", "null"]},
          "phones": {"type": "array", "items": {"type": "string"}},
          "coordinates": {"type": ["object", "null"], "properties": {"latitude": {"type": "number"}, "longitude": {"type": "number"}}},
          "types": {"type": "array", "items": {"type": "string"}},
          "updated_at": {"type": ["string", "null"]},
          "url": {"type": ["string", "null"]},
          "image_url": {"type": ["string", "null"]},
          "phone_contacts": {"type": "array", "items": {"$ref": "#/components/schemas/CatalogPhone"}},
          "media": {"type": "array", "items": {"$ref": "#/components/schemas/CatalogMedia"}},
          "rating": {"$ref": "#/components/schemas/CatalogRating"},
          "comments": {"type": "array", "items": {"$ref": "#/components/schemas/CatalogComment"}},
          "comments_count": {"type": "integer"},
          "categories": {"type": "array", "items": {"$ref": "#/components/schemas/PlaceCategory"}},
          "details": {"type": "array", "items": {"$ref": "#/components/schemas/PlaceDetails"}},
          "pricelists": {"type": "array", "items": {"$ref": "#/components/schemas/CatalogPricelist"}},
          "current_pricelist": {"oneOf": [{"$ref": "#/components/schemas/CatalogPricelist"}, {"type": "null"}]},
          "nearby_lifts": {"type": "array", "items": {"$ref": "#/components/schemas/PlaceReference"}},
          "nearest_lift": {"oneOf": [{"$ref": "#/components/schemas/PlaceReference"}, {"type": "null"}]},
          "ticket_offices": {"type": "array", "items": {"$ref": "#/components/schemas/PlaceReference"}}
        },
        "required": [
          "id",
          "slug",
          "name",
          "brand",
          "description",
          "address",
          "website_url",
          "phones",
          "coordinates",
          "types",
          "updated_at",
          "url",
          "image_url",
          "phone_contacts",
          "media",
          "rating",
          "comments",
          "comments_count",
          "categories",
          "details",
          "pricelists",
          "current_pricelist",
          "nearby_lifts",
          "nearest_lift",
          "ticket_offices"
        ],
        "description": "Базові поля v1 збережені. categories містить назву/slug/іконку категорії, display_name з урахуванням бренду і URL сторінки. details прив’язано до type_id. media з type_id=null — загальна галерея, решта — галерея категорії; порядок відповідає сайту (для загальної галереї відео перед фото). Координати читаються як широта/довгота MySQL SRID 4326."
      },
      "InstructorCertificate": {
        "type": "object",
        "properties": {
          "id": {"type": "integer"},
          "type": {"type": "string"},
          "label": {"type": "string"},
          "certificate_number": {"type": ["string", "null"]},
          "issue_year": {"type": ["integer", "null"]},
          "discipline": {"type": "string"},
          "discipline_label": {"type": "string"},
          "photo_url": {"type": ["string", "null"]}
        },
        "required": ["id", "type", "label", "certificate_number", "issue_year", "discipline", "discipline_label", "photo_url"]
      },
      "InstructorProfile": {
        "type": "object",
        "properties": {
          "teaches_ski": {"type": "boolean"},
          "teaches_snowboard": {"type": "boolean"},
          "teaches_children": {"type": "boolean"},
          "teaches_adults": {"type": "boolean"},
          "offers_individual": {"type": "boolean"},
          "offers_group": {"type": "boolean"},
          "speaks_english": {"type": "boolean"},
          "photo_url": {"type": ["string", "null"]},
          "certificates": {"type": "array", "items": {"$ref": "#/components/schemas/InstructorCertificate"}},
          "lifts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {"type": "integer"},
                "name": {"type": "string"},
                "slug": {"type": "string"},
                "type": {"type": "string"},
                "type_name": {"type": ["string", "null"]},
                "url": {"type": ["string", "null"]}
              },
              "required": ["id", "name", "slug", "type", "type_name", "url"]
            }
          }
        },
        "required": [
          "teaches_ski",
          "teaches_snowboard",
          "teaches_children",
          "teaches_adults",
          "offers_individual",
          "offers_group",
          "speaks_english",
          "photo_url",
          "certificates",
          "lifts"
        ]
      },
      "TransferRoute": {
        "type": "object",
        "properties": {
          "id": {"type": "integer"},
          "service_route_id": {"type": "integer"},
          "kind": {"type": "string"},
          "direction": {"type": "string"},
          "label": {"type": "string"},
          "point_a": {"type": "object", "properties": {"id": {"type": "integer"}, "name": {"type": "string"}}, "required": ["id", "name"]},
          "point_b": {"type": "object", "properties": {"id": {"type": "integer"}, "name": {"type": "string"}}, "required": ["id", "name"]},
          "resorts": {
            "type": "array",
            "items": {"type": "object", "properties": {"id": {"type": "integer"}, "slug": {"type": "string"}, "name": {"type": "string"}}, "required": ["id", "slug", "name"]}
          },
          "note": {"type": ["string", "null"]}
        },
        "required": ["id", "service_route_id", "kind", "direction", "label", "point_a", "point_b", "resorts", "note"]
      },
      "TransferVehicle": {
        "type": "object",
        "properties": {
          "id": {"type": "integer"},
          "type": {"type": "string"},
          "type_name": {"type": "string"},
          "make_name": {"type": ["string", "null"]},
          "model_name": {"type": ["string", "null"]},
          "display_name": {"type": "string"},
          "manufacture_year": {"type": ["integer", "null"]},
          "seats_count": {"type": "integer"},
          "vehicle_count": {"type": "integer"},
          "description": {"type": ["string", "null"]},
          "route_ids": {"type": "array", "items": {"type": "integer"}},
          "media": {"type": "array", "items": {"$ref": "#/components/schemas/CatalogMedia"}}
        },
        "required": ["id", "type", "type_name", "make_name", "model_name", "display_name", "manufacture_year", "seats_count", "vehicle_count", "description", "route_ids", "media"]
      },
      "TransferProfile": {
        "type": "object",
        "properties": {
          "brand_image_kind": {"type": "string"},
          "brand_image_url": {"type": ["string", "null"]},
          "booking_notice": {"type": ["string", "null"]},
          "schedule_note": {"type": ["string", "null"]},
          "luggage_note": {"type": ["string", "null"]},
          "routes": {"type": "array", "items": {"$ref": "#/components/schemas/TransferRoute"}},
          "parking_points": {
            "type": "array",
            "items": {"type": "object", "properties": {"id": {"type": "integer"}, "slug": {"type": "string"}, "name": {"type": "string"}}, "required": ["id", "slug", "name"]}
          },
          "vehicles": {"type": "array", "items": {"$ref": "#/components/schemas/TransferVehicle"}},
          "vehicles_total": {"type": "integer"},
          "seats_min": {"type": ["integer", "null"]},
          "seats_max": {"type": ["integer", "null"]}
        },
        "required": [
          "brand_image_kind",
          "brand_image_url",
          "booking_notice",
          "schedule_note",
          "luggage_note",
          "routes",
          "parking_points",
          "vehicles",
          "vehicles_total",
          "seats_min",
          "seats_max"
        ]
      },
      "PlaceType": {
        "type": "object",
        "properties": {
          "id": {"type": "integer"},
          "parent_id": {"type": ["integer", "null"]},
          "slug": {"type": "string"},
          "name": {"type": "string"},
          "singular_name": {"type": ["string", "null"]},
          "icon_svg": {"type": ["string", "null"]},
          "profile": {"type": ["string", "null"]}
        },
        "required": ["id", "parent_id", "slug", "name", "singular_name", "icon_svg", "profile"]
      },
      "PlaceListResponse": {
        "type": "object",
        "properties": {
          "data": {"type": "array", "items": {"$ref": "#/components/schemas/Place"}},
          "meta": {
            "allOf": [
              {"$ref": "#/components/schemas/Meta"},
              {"type": "object", "properties": {"pagination": {"$ref": "#/components/schemas/Pagination"}, "resort_slug": {"type": "string"}, "language": {"type": "string"}}}
            ]
          }
        },
        "required": ["data", "meta"]
      },
      "ResortAvailability": {
        "type": "object",
        "required": ["weather", "weather_station", "photo_archive", "webcams", "catalog"],
        "properties": {
          "catalog": {
            "type": "object",
            "description": "Кількість публічних записів каталогу: total = places + services, available = total > 0; порожній каталог повертає false та нулі. Місця: poi.resort_id = locations.number, status = active. Сервіси відповідають /services та правилам публічного сайту: active, is_dev_only = 0, власник має чинний premium. Інструктор має профіль service_instructors і services.resort_id = locations.id. Трансфер має профіль service_transfers, активний транспорт і активний маршрут з активними кінцевими точками, пов’язаний з locations.id через transfer_route_resorts; services.resort_id може бути null. Кілька маршрутів одного сервісу не збільшують лічильник. Публічний id курорту залишається locations.id.",
            "required": ["available", "total", "places", "services"],
            "properties": {
              "available": {"type": "boolean"},
              "total": {"type": "integer", "minimum": 0},
              "places": {"type": "integer", "minimum": 0},
              "services": {"type": "integer", "minimum": 0}
            }
          },
          "weather": {
            "type": "object",
            "required": ["available", "working", "status", "source", "endpoint", "updated_at", "next_update_at", "recommended_fetch_at"],
            "properties": {
              "available": {"type": "boolean"},
              "working": {"type": "boolean"},
              "status": {"type": "string", "enum": ["online", "stale", "offline", "unavailable"]},
              "source": {"type": ["string", "null"], "example": "meteoblue"},
              "endpoint": {"type": ["string", "null"], "example": "/v1/resorts/drahobrat/weather"},
              "updated_at": {"type": ["string", "null"], "format": "date-time"},
              "next_update_at": {"type": ["string", "null"], "format": "date-time"},
              "recommended_fetch_at": {"type": ["string", "null"], "format": "date-time"}
            }
          },
          "weather_station": {
            "type": "object",
            "required": ["available", "working", "status", "source", "updated_at"],
            "properties": {
              "available": {"type": "boolean"},
              "working": {"type": "boolean"},
              "status": {"type": "string", "enum": ["online", "stale", "offline", "unavailable"]},
              "source": {"type": ["string", "null"]},
              "updated_at": {"type": ["string", "null"], "format": "date-time"}
            }
          },
          "photo_archive": {
            "type": "object",
            "required": ["available", "cameras", "endpoint"],
            "properties": {
              "available": {"type": "boolean"},
              "cameras": {"type": "integer", "minimum": 0, "description": "Кількість камер курорту, для яких є хоча б один архівний знімок"},
              "endpoint": {"type": ["string", "null"], "example": "/v1/resorts/drahobrat/photo-archive"}
            }
          },
          "webcams": {
            "type": "object",
            "required": ["available", "working", "status", "online", "offline", "total", "endpoint"],
            "properties": {
              "available": {"type": "boolean"},
              "working": {"type": "boolean"},
              "status": {"type": "string", "enum": ["online", "partially_online", "offline", "unavailable"]},
              "online": {"type": "integer", "minimum": 0},
              "offline": {"type": "integer", "minimum": 0},
              "total": {"type": "integer", "minimum": 0},
              "endpoint": {"type": ["string", "null"]}
            }
          }
        }
      },
      "ResortListResponse": {
        "type": "object",
        "properties": {
          "data": {"type": "array", "items": {"$ref": "#/components/schemas/Resort"}},
          "meta": {"allOf": [{"$ref": "#/components/schemas/Meta"}, {"type": "object", "properties": {"pagination": {"$ref": "#/components/schemas/Pagination"}}}]}
        }
      },
      "Webcam": {
        "type": "object",
        "required": ["id", "name", "status", "stream_url", "stream_expires_at", "stream_expires_in_seconds", "hls_available", "hls_access_endpoint", "hls_token_cost", "image_url", "poster_url", "page_url", "website_url", "has_sound"],
        "properties": {
          "id": {"type": "integer"},
          "name": {"type": "string"},
          "description": {"type": ["string", "null"]},
          "status": {"type": "string", "enum": ["online", "offline"]},
          "status_changed_at": {"type": ["string", "null"], "format": "date-time"},
          "coordinates": {"$ref": "#/components/schemas/Coordinates"},
          "stream_url": {"type": ["string", "null"], "format": "uri", "description": "Зовнішня безкоштовна трансляція, якщо камера не використовує внутрішній HLS"},
          "stream_expires_at": {"type": ["string", "null"], "format": "date-time"},
          "stream_expires_in_seconds": {"type": ["integer", "null"]},
          "hls_available": {"type": "boolean", "description": "Чи можна створити окрему платну HLS-сесію"},
          "hls_access_endpoint": {"type": ["string", "null"], "description": "Endpoint створення HLS-сесії"},
          "hls_token_cost": {"type": ["integer", "null"], "description": "Вартість нової 30-хвилинної HLS-сесії в токенах"},
          "image_url": {"type": ["string", "null"], "format": "uri", "description": "Зменшене актуальне зображення камери"},
          "poster_url": {"type": ["string", "null"], "format": "uri", "description": "Зображення 16:9 для poster відеопрогравача"},
          "page_url": {"type": "string", "format": "uri", "description": "Абсолютний URL сторінки камери на snih.info за правилами UrlHelper::webcamUrl: /{lang}/{resort_slug}/{webcams.number}. Номер камери без початкових нулів, не webcams.id; мова відповідає lang запиту.", "example": "https://snih.info/uk/drahobrat/151"},
          "website_url": {"type": ["string", "null"], "format": "uri", "description": "Сайт місця встановлення камери (webcams.cam_url). Якщо URL відсутній або некоректний, використовується сайт курорту (locations.resort_url). Якщо обидва відсутні або некоректні — null.", "example": "https://example.com"},
          "has_sound": {"type": "boolean"}
        }
      },
      "WebcamListResponse": {
        "type": "object",
        "properties": {
          "data": {"type": "array", "items": {"$ref": "#/components/schemas/Webcam"}},
          "meta": {"allOf": [{"$ref": "#/components/schemas/Meta"}, {"type": "object", "properties": {"resort_slug": {"type": "string"}, "pagination": {"$ref": "#/components/schemas/Pagination"}}}]}
        }
      },
      "ArchivePhoto": {
        "type": "object",
        "required": ["id", "captured_at", "webcam", "image_url", "original_url", "thumbnail_url", "share_url", "weather_temperature_c"],
        "properties": {
          "id": {"type": "integer"},
          "captured_at": {"type": "string", "format": "date-time", "description": "Час знімка у Europe/Kyiv"},
          "webcam": {
            "type": "object",
            "required": ["id", "name", "status"],
            "properties": {
              "id": {"type": "integer"},
              "name": {"type": "string"},
              "status": {"type": "string", "enum": ["online", "offline"]}
            }
          },
          "image_url": {"type": ["string", "null"], "format": "uri"},
          "original_url": {"type": ["string", "null"], "format": "uri"},
          "thumbnail_url": {"type": ["string", "null"], "format": "uri"},
          "share_url": {"type": ["string", "null"], "format": "uri"},
          "weather_temperature_c": {"type": ["number", "null"], "description": "Температура під час знімка, якщо була записана"}
        }
      },
      "ArchiveCalendar": {
        "type": "object",
        "required": ["timezone", "range", "years", "months", "days", "hours"],
        "properties": {
          "timezone": {"type": "string", "example": "Europe/Kyiv"},
          "range": {
            "type": "object",
            "required": ["from", "to"],
            "properties": {
              "from": {"type": ["string", "null"], "format": "date-time"},
              "to": {"type": ["string", "null"], "format": "date-time"}
            }
          },
          "years": {"type": "array", "items": {"type": "integer"}, "description": "Доступні роки для всього вибраного курорту або камери"},
          "months": {"type": "array", "items": {"type": "integer", "minimum": 1, "maximum": 12}, "description": "Заповнюється після вибору year"},
          "days": {"type": "array", "items": {"type": "integer", "minimum": 1, "maximum": 31}, "description": "Заповнюється після вибору year і month"},
          "hours": {"type": "array", "items": {"type": "integer", "minimum": 0, "maximum": 23}, "description": "Заповнюється після вибору повної дати"}
        }
      },
      "PhotoArchiveResponse": {
        "type": "object",
        "required": ["data", "meta"],
        "properties": {
          "data": {"type": "array", "items": {"$ref": "#/components/schemas/ArchivePhoto"}},
          "meta": {
            "allOf": [
              {"$ref": "#/components/schemas/Meta"},
              {
                "type": "object",
                "required": ["resort_slug", "mode", "order", "webcam", "filters", "calendar", "pagination"],
                "properties": {
                  "resort_slug": {"type": "string"},
                  "mode": {"type": "string", "enum": ["latest_per_webcam", "webcam_archive"]},
                  "order": {"type": "string", "enum": ["desc", "asc"], "description": "Фактичний напрям сортування за часом та ID", "example": "asc"},
                  "webcam": {"type": ["object", "null"], "additionalProperties": true},
                  "filters": {"type": "object", "properties": {"year": {"type": ["integer", "null"]}, "month": {"type": ["integer", "null"]}, "day": {"type": ["integer", "null"]}, "hour": {"type": ["integer", "null"]}}},
                  "calendar": {"$ref": "#/components/schemas/ArchiveCalendar"},
                  "pagination": {"$ref": "#/components/schemas/Pagination"}
                }
              }
            ]
          }
        }
      },
      "HlsSessionResponse": {
        "type": "object",
        "required": ["data", "meta"],
        "properties": {
          "data": {
            "type": "object",
            "required": ["session_id", "webcam_id", "resort_slug", "stream_url", "old_device_hls_url", "issued_at", "expires_at", "expires_in_seconds"],
            "properties": {
              "session_id": {"type": "string", "pattern": "^hls_[a-f0-9]{32}$"},
              "webcam_id": {"type": "integer"},
              "resort_slug": {"type": "string"},
              "stream_url": {"type": "string", "format": "uri", "description": "Основний підписаний HLS URL на домені hls.cdn.ua"},
              "old_device_hls_url": {"type": "string", "format": "uri", "description": "Підписаний HLS URL для старих пристроїв: домен stream_url (зокрема CDN у зоні cdn.ua) замінено на hls.snih.info. Шлях, параметри підпису та строк дії ті самі; додаткових списань немає. Якщо stream_url вже використовує hls.snih.info, обидва URL збігаються."},
              "issued_at": {"type": "string", "format": "date-time"},
              "expires_at": {"type": "string", "format": "date-time"},
              "expires_in_seconds": {"type": "integer", "maximum": 1800}
            }
          },
          "meta": {
            "allOf": [
              {"$ref": "#/components/schemas/Meta"},
              {"type": "object", "properties": {"idempotent_replay": {"type": "boolean"}}}
            ]
          }
        }
      },
      "WeatherPoint": {
        "type": ["object", "null"],
        "properties": {
          "time": {"type": "string"},
          "temperature": {"type": "number", "description": "°C"},
          "wind": {"type": "number", "description": "км/год для Meteoblue"},
          "wind_dir": {"type": "number", "description": "Градуси"},
          "humidity": {"type": "number", "description": "%"},
          "pressure": {"type": "number", "description": "мм рт. ст."},
          "precipitation": {"type": "number", "description": "мм"},
          "pictocode": {"type": "integer"}
        },
        "additionalProperties": true
      },
      "Weather": {
        "type": "object",
        "required": ["source", "status", "working", "updated_at", "timezone", "update_schedule", "default_level", "levels", "daily", "sunrise_sunset", "weather_station", "units", "ai_summary"],
        "properties": {
          "source": {"type": "string"},
          "status": {"type": "string", "enum": ["online", "stale", "offline"]},
          "working": {"type": "boolean"},
          "updated_at": {"type": ["string", "null"], "format": "date-time"},
          "timezone": {"type": "string", "example": "Europe/Kyiv"},
          "update_schedule": {"$ref": "#/components/schemas/WeatherUpdateSchedule"},
          "default_level": {"type": "string", "enum": ["bottom", "middle", "top"]},
          "elevation_m": {"type": ["integer", "null"]},
          "current": {"$ref": "#/components/schemas/WeatherPoint"},
          "hourly": {"type": "array", "items": {"$ref": "#/components/schemas/WeatherPoint"}, "description": "Сумісний v1-зріз default_level"},
          "levels": {
            "type": "object",
            "additionalProperties": {"$ref": "#/components/schemas/WeatherLevel"},
            "example": {"bottom": {"elevation_m": 1240}, "middle": {"elevation_m": 1475}, "top": {"elevation_m": 1710}}
          },
          "ai_summary": {"$ref": "#/components/schemas/WeatherAiSummary"},
          "daily_elevation_m": {"type": ["integer", "null"]},
          "daily": {"type": "array", "items": {"type": "object", "additionalProperties": true}, "description": "Денний прогноз Meteoblue до 16 днів, якщо він доступний"},
          "sunrise_sunset": {"$ref": "#/components/schemas/SunriseSunsetForecast"},
          "weather_station": {"$ref": "#/components/schemas/WeatherStation"},
          "units": {"type": "object", "additionalProperties": {"type": "string"}},
          "station_observations": {"$ref": "#/components/schemas/StationObservations"}
        }
      },
      "WeatherAiSummary": {
        "type": [
          "object",
          "null"
        ],
        "description": "Готові тексти з того самого Redis-кешу, що SNIH PRO. Без генерації/перекладу в запиті API. null, якщо кеш або тексти потрібною мовою відсутні. days_1 означає сьогодні й завтра відносно дня generated_at; це не триденний прогноз.",
        "required": [
          "language",
          "status",
          "generated_at",
          "source_updated_at",
          "forecasts"
        ],
        "properties": {
          "language": {
            "type": "string",
            "enum": [
              "uk",
              "en",
              "pl"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "online",
              "stale"
            ],
            "description": "online: AI створено сьогодні за Europe/Kyiv, не в майбутньому, source_updated_at точно відповідає актуальному кешу прогнозу. Інакше stale; тексти зберігаються для показу з часом."
          },
          "generated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "source_updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Час версії прогнозу, за якою згенеровано AI; не час самого тексту."
          },
          "forecasts": {
            "type": "object",
            "required": [
              "days_1",
              "days_7"
            ],
            "additionalProperties": false,
            "properties": {
              "days_1": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Залишок дня генерації та весь наступний календарний день."
              },
              "days_7": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Наявний AI-прогноз на 7 днів."
              }
            }
          }
        },
        "examples": [
          null,
          {
            "language": "uk",
            "status": "stale",
            "generated_at": "2026-09-09T04:00:35+03:00",
            "source_updated_at": "2026-09-09T04:00:04+03:00",
            "forecasts": {
              "days_1": "Приклад тексту на сьогодні й завтра.",
              "days_7": null
            }
          }
        ]
      },
      "WeatherLevel": {
        "type": "object",
        "required": ["elevation_m", "current", "hourly"],
        "properties": {
          "elevation_m": {"type": ["integer", "null"]},
          "current": {"$ref": "#/components/schemas/WeatherPoint"},
          "hourly": {"type": "array", "items": {"$ref": "#/components/schemas/WeatherPoint"}}
        }
      },
      "WeatherUpdateSchedule": {
        "type": "object",
        "required": ["timezone", "times", "last_scheduled_at", "expected_update_at", "next_update_at", "recommended_fetch_at"],
        "properties": {
          "timezone": {"type": "string", "example": "Europe/Kyiv"},
          "times": {"type": "array", "items": {"type": "string", "pattern": "^[0-2][0-9]:00$"}, "example": ["04:00", "12:00", "20:00"]},
          "last_scheduled_at": {"type": ["string", "null"], "format": "date-time"},
          "expected_update_at": {"type": ["string", "null"], "format": "date-time", "description": "Останній запуск, який уже має бути в кеші з урахуванням технологічного вікна"},
          "next_update_at": {"type": "string", "format": "date-time"},
          "recommended_fetch_at": {"type": "string", "format": "date-time", "description": "Рекомендований момент запиту клієнта після завершення оновлення всіх погодних частин"}
        }
      },
      "SunriseSunsetForecast": {
        "type": "object",
        "required": ["available", "working", "status", "updated_at", "elevation_m", "days", "events"],
        "properties": {
          "available": {"type": "boolean"},
          "working": {"type": "boolean"},
          "status": {"type": "string", "enum": ["online", "stale", "offline"]},
          "updated_at": {"type": ["string", "null"], "format": "date-time"},
          "elevation_m": {"type": ["integer", "null"]},
          "days": {"type": "array", "items": {"type": "object", "additionalProperties": true}, "description": "Час сходу, заходу, тривалість дня і дані Місяця"},
          "events": {"type": "array", "items": {"$ref": "#/components/schemas/SunEvent"}}
        }
      },
      "SunEvent": {
        "type": "object",
        "required": ["type", "date", "time", "datetime", "visibility_score", "rating", "sample_hours"],
        "properties": {
          "type": {"type": "string", "enum": ["sunrise", "sunset"]},
          "date": {"type": "string", "format": "date"},
          "time": {"type": "string"},
          "datetime": {"type": "string", "format": "date-time"},
          "visibility_score": {"type": "integer", "minimum": 0, "maximum": 100},
          "rating": {"type": "string", "enum": ["excellent", "good", "fair", "poor"]},
          "cloud_cover": {"type": ["number", "null"]},
          "precipitation": {"type": ["number", "null"]},
          "temperature": {"type": ["number", "null"]},
          "wind": {"type": ["number", "null"], "description": "км/год"},
          "sample_hours": {"type": "array", "items": {"type": "object", "additionalProperties": true}}
        }
      },
      "WeatherStation": {
        "type": "object",
        "required": ["available", "working", "status", "source", "updated_at", "stale_after_seconds", "current", "last_observation", "units"],
        "properties": {
          "available": {"type": "boolean"},
          "working": {"type": "boolean"},
          "status": {"type": "string", "enum": ["online", "stale", "offline", "unavailable"]},
          "source": {"type": ["string", "null"], "enum": ["davis_weatherlink", "davis_api_v2", "davis_api_v1", null]},
          "updated_at": {"type": ["string", "null"], "format": "date-time"},
          "stale_after_seconds": {"type": "integer", "example": 3600},
          "current": {"type": ["object", "null"], "additionalProperties": true, "description": "Лише свіже показання станції"},
          "last_observation": {"type": ["object", "null"], "additionalProperties": true, "description": "Останнє відоме показання, яке може бути застарілим"},
          "units": {"type": "object", "additionalProperties": {"type": "string"}}
        },
        "description": "Існуюча нормалізована проєкція станції, тепер із fallback realtime → Davis API. Повний набір наявних параметрів: Weather.station_observations. Старі поля та одиниці збережені."
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "required": ["code", "message", "request_id"],
            "properties": {"code": {"type": "string"}, "message": {"type": "string"}, "request_id": {"type": "string"}}
          }
        }
      }
    ,
      "ResortRegion": {
        "type": ["object", "null"],
        "description": "Область із публічного SNIH locations.loc_dis_{lang}; порожнє/відоме помилкове значення — null. Мовного fallback немає. Наявні переклади джерела передаються без змін (pl подекуди дублює en).",
        "required": ["name"],
        "properties": {"name": {"type": "string", "minLength": 1}},
        "examples": [{"name": "Львівська область"}, null]
      },
      "ResortWeatherSummary": {
        "type": ["object", "null"],
        "description": "Коротка поточна температура фізичної станції: свіже realtime → свіжий Davis API → temperature_c=null. Затримка Davis API близько 5 хвилин допустима; граничний вік датчика 3600 секунд, майбутній/невідомий час не приймається. Прогноз НЕ fallback. Дані і джерело відповідають station_observations; свіжість кожного датчика перевіряється окремо. Реалізація повертає об’єкт, клієнт також приймає null.",
        "required": ["temperature_c", "icon_url", "label", "status", "time", "updated_at", "timezone", "level"],
        "properties": {
          "temperature_c": {
            "type": ["number", "null"],
            "description": "Свіже зовнішнє temp станції у °C, включно з fallback Davis API. Без нього null. Порівняйте station_observations.current.sensors[].measurements.temp.value та /weather.weather_station.current.temperature."
          },
          "icon_url": {
            "type": ["string", "null"],
            "format": "uri",
            "pattern": "^https://",
            "description": "Зараз завжди null: станція не надає піктограм. Іконка прогнозу не підставляється."
          },
          "label": {"type": ["string", "null"], "description": "Зараз завжди null: станція не надає опису погодного стану."},
          "status": {
            "type": "string",
            "enum": ["online", "stale", "offline", "unavailable"],
            "description": "online: є свіжа зовнішня температура; stale: відома лише застаріла/майбутня/без часу; offline: джерело є, придатної температури немає; unavailable: жодне джерело станції не налаштоване/не знайдене. Лише online має temperature_c."
          },
          "time": {
            "type": ["string", "null"],
            "format": "date-time",
            "description": "Час датчика зовнішньої температури у Europe/Kyiv з сезонним UTC offset. Це observed_at датчика, не час кешу/HTTP-запиту; stale може зберігати останній час без температури."
          },
          "updated_at": {
            "type": ["string", "null"],
            "format": "date-time",
            "description": "Час запису realtime або оновлення кешу Davis API, як station_observations.updated_at. Може відрізнятися від time. Не визначає актуальність датчика."
          },
          "timezone": {"type": "string", "const": "Europe/Kyiv"},
          "level": {
            "type": ["string", "null"],
            "enum": ["bottom", "middle", "top", null],
            "description": "Зараз завжди null: висотний рівень станції не визначений джерелом. default_level прогнозу до станції не застосовується."
          }
        },
        "examples": [
          {
            "temperature_c": 11.72,
            "icon_url": null,
            "label": null,
            "status": "online",
            "time": "2026-09-09T06:00:42+03:00",
            "updated_at": "2026-09-09T03:07:30+00:00",
            "timezone": "Europe/Kyiv",
            "level": null
          },
          {"temperature_c": null, "icon_url": null, "label": null, "status": "unavailable", "time": null, "updated_at": null, "timezone": "Europe/Kyiv", "level": null},
          null
        ]
      },
      "StationMeasurement": {
        "type": "object",
        "required": ["value", "unit"],
        "additionalProperties": false,
        "properties": {"value": {"type": ["number", "string"]}, "unit": {"type": "string"}}
      },
      "StationSensor": {
        "type": "object",
        "required": ["type", "observed_at", "measurements"],
        "additionalProperties": false,
        "properties": {
          "type": {"type": "string", "enum": ["outdoor", "indoor", "barometer", "soil_leaf", "unknown"]},
          "observed_at": {"type": ["string", "null"], "format": "date-time", "description": "Час саме цього датчика. Новий час іншого датчика не оновлює ці вимірювання."},
          "measurements": {
            "type": "object",
            "minProperties": 1,
            "additionalProperties": false,
            "properties": {
              "temp": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "dew_point": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "wet_bulb": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "heat_index": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "wind_chill": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "thw_index": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "thsw_index": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "temp_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "dew_point_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "heat_index_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "temp_1": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "temp_2": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "temp_3": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "temp_4": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "hum": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["%"]}}
              },
              "hum_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["%"]}}
              },
              "relative_humidity": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["%"]}}
              },
              "wind_speed_last": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["m/s"]}}
              },
              "wind_mph": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["m/s"]}}
              },
              "wind_speed_avg_last_1_min": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["m/s"]}}
              },
              "wind_speed_avg_last_2_min": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["m/s"]}}
              },
              "wind_speed_avg_last_10_min": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["m/s"]}}
              },
              "wind_speed_hi_last_2_min": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["m/s"]}}
              },
              "wind_speed_hi_last_10_min": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["m/s"]}}
              },
              "wind_dir_last": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["degree"]}}
              },
              "wind_dir_scalar_avg_last_1_min": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["degree"]}}
              },
              "wind_dir_scalar_avg_last_2_min": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["degree"]}}
              },
              "wind_dir_scalar_avg_last_10_min": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["degree"]}}
              },
              "wind_dir_at_hi_speed_last_2_min": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["degree"]}}
              },
              "wind_dir_at_hi_speed_last_10_min": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["degree"]}}
              },
              "bar_sea_level": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["hPa"]}}
              },
              "bar_absolute": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["hPa"]}}
              },
              "bar_trend": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["hPa"]}}
              },
              "pressure_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["hPa"]}}
              },
              "bar_offset": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["hPa"]}}
              },
              "rainfall_last_15_min": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips", "mm"]}}
              },
              "rainfall_last_60_min": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips", "mm"]}}
              },
              "rainfall_last_24_hr": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips", "mm"]}}
              },
              "rainfall_daily": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips", "mm"]}}
              },
              "rainfall_monthly": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips", "mm"]}}
              },
              "rainfall_year": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips", "mm"]}}
              },
              "rain_storm": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips", "mm"]}}
              },
              "rain_storm_last": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips", "mm"]}}
              },
              "rain_15_min": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips", "mm"]}}
              },
              "rain_60_min": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips", "mm"]}}
              },
              "rain_24_hr": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips", "mm"]}}
              },
              "rain_rate_last": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips/h", "mm/h"]}}
              },
              "rain_rate_hi": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips/h", "mm/h"]}}
              },
              "rain_rate_hi_last_15_min": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips/h", "mm/h"]}}
              },
              "rain_storm_start_at": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["unix_s"]}}
              },
              "rain_storm_last_start_at": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["unix_s"]}}
              },
              "rain_storm_last_end_at": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["unix_s"]}}
              },
              "solar_rad": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["W/m²"]}}
              },
              "uv_index": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["index"]}}
              },
              "wet_leaf_1": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["index"]}}
              },
              "wet_leaf_2": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["index"]}}
              },
              "moist_soil_1": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["cb"]}}
              },
              "moist_soil_2": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["cb"]}}
              },
              "moist_soil_3": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["cb"]}}
              },
              "moist_soil_4": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["cb"]}}
              },
              "rainfall_last_15_min_mm": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["mm"]}}
              },
              "rainfall_last_15_min_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["in"]}}
              },
              "rainfall_last_15_min_clicks": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips"]}}
              },
              "rainfall_last_60_min_mm": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["mm"]}}
              },
              "rainfall_last_60_min_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["in"]}}
              },
              "rainfall_last_60_min_clicks": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips"]}}
              },
              "rainfall_last_24_hr_mm": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["mm"]}}
              },
              "rainfall_last_24_hr_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["in"]}}
              },
              "rainfall_last_24_hr_clicks": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips"]}}
              },
              "rainfall_daily_mm": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["mm"]}}
              },
              "rainfall_daily_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["in"]}}
              },
              "rainfall_daily_clicks": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips"]}}
              },
              "rainfall_monthly_mm": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["mm"]}}
              },
              "rainfall_monthly_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["in"]}}
              },
              "rainfall_monthly_clicks": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips"]}}
              },
              "rainfall_year_mm": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["mm"]}}
              },
              "rainfall_year_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["in"]}}
              },
              "rainfall_year_clicks": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips"]}}
              },
              "rain_storm_mm": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["mm"]}}
              },
              "rain_storm_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["in"]}}
              },
              "rain_storm_clicks": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips"]}}
              },
              "rain_storm_last_mm": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["mm"]}}
              },
              "rain_storm_last_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["in"]}}
              },
              "rain_storm_last_clicks": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips"]}}
              },
              "rain_rate_last_mm": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["mm/h"]}}
              },
              "rain_rate_last_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["in/h"]}}
              },
              "rain_rate_last_clicks": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips/h"]}}
              },
              "rain_rate_hi_mm": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["mm/h"]}}
              },
              "rain_rate_hi_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["in/h"]}}
              },
              "rain_rate_hi_clicks": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips/h"]}}
              },
              "rain_rate_hi_last_15_min_mm": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["mm/h"]}}
              },
              "rain_rate_hi_last_15_min_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["in/h"]}}
              },
              "rain_rate_hi_last_15_min_clicks": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["tips/h"]}}
              },
              "rain_storm_start_time": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["unix_s"]}}
              },
              "dewpoint_day_high_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "dewpoint_day_low_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "dewpoint_month_high_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "dewpoint_month_low_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "dewpoint_year_high_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "dewpoint_year_low_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "heat_index_day_high_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "heat_index_day_low_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "heat_index_month_high_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "heat_index_month_low_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "heat_index_year_high_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "heat_index_year_low_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "temp_day_high_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "temp_day_low_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "temp_month_high_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "temp_month_low_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "temp_year_high_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "temp_year_low_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "temp_in_day_high_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "temp_in_day_low_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "temp_in_month_high_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "temp_in_month_low_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "temp_in_year_high_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "temp_in_year_low_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "windchill_day_high_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "windchill_day_low_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "windchill_month_high_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "windchill_month_low_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "windchill_year_high_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "windchill_year_low_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "temp_in_f": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["°C"]}}
              },
              "pressure_day_high_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["hPa"]}}
              },
              "relative_humidity_day_high": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["%"]}}
              },
              "relative_humidity_in_day_high": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["%"]}}
              },
              "pressure_day_low_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["hPa"]}}
              },
              "relative_humidity_day_low": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["%"]}}
              },
              "relative_humidity_in_day_low": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["%"]}}
              },
              "pressure_month_high_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["hPa"]}}
              },
              "relative_humidity_month_high": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["%"]}}
              },
              "relative_humidity_in_month_high": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["%"]}}
              },
              "pressure_month_low_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["hPa"]}}
              },
              "relative_humidity_month_low": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["%"]}}
              },
              "relative_humidity_in_month_low": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["%"]}}
              },
              "pressure_year_high_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["hPa"]}}
              },
              "relative_humidity_year_high": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["%"]}}
              },
              "relative_humidity_in_year_high": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["%"]}}
              },
              "pressure_year_low_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["hPa"]}}
              },
              "relative_humidity_year_low": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["%"]}}
              },
              "relative_humidity_in_year_low": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["%"]}}
              },
              "relative_humidity_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["%"]}}
              },
              "rain_day_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["in"]}}
              },
              "wind_day_high_mph": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["m/s"]}}
              },
              "rain_month_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["in"]}}
              },
              "wind_month_high_mph": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["m/s"]}}
              },
              "rain_year_in": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["in"]}}
              },
              "wind_year_high_mph": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["m/s"]}}
              },
              "rain_rate_day_high_in_per_hr": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["in/h"]}}
              },
              "rain_rate_hour_high_in_per_hr": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["in/h"]}}
              },
              "rain_rate_month_high_in_per_hr": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["in/h"]}}
              },
              "rain_rate_year_high_in_per_hr": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["in/h"]}}
              },
              "rain_rate_in_per_hr": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["in/h"]}}
              },
              "wind_ten_min_avg_mph": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["m/s"]}}
              },
              "wind_ten_min_gust_mph": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "number"}, "unit": {"type": "string", "enum": ["m/s"]}}
              },
              "dewpoint_day_high_time": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "string"}, "unit": {"type": "string", "enum": ["source_local_time"]}}
              },
              "dewpoint_day_low_time": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "string"}, "unit": {"type": "string", "enum": ["source_local_time"]}}
              },
              "heat_index_day_high_time": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "string"}, "unit": {"type": "string", "enum": ["source_local_time"]}}
              },
              "pressure_day_high_time": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "string"}, "unit": {"type": "string", "enum": ["source_local_time"]}}
              },
              "pressure_day_low_time": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "string"}, "unit": {"type": "string", "enum": ["source_local_time"]}}
              },
              "rain_rate_day_high_time": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "string"}, "unit": {"type": "string", "enum": ["source_local_time"]}}
              },
              "relative_humidity_day_high_time": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "string"}, "unit": {"type": "string", "enum": ["source_local_time"]}}
              },
              "relative_humidity_day_low_time": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "string"}, "unit": {"type": "string", "enum": ["source_local_time"]}}
              },
              "relative_humidity_in_day_high_time": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "string"}, "unit": {"type": "string", "enum": ["source_local_time"]}}
              },
              "relative_humidity_in_day_low_time": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "string"}, "unit": {"type": "string", "enum": ["source_local_time"]}}
              },
              "temp_day_high_time": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "string"}, "unit": {"type": "string", "enum": ["source_local_time"]}}
              },
              "temp_day_low_time": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "string"}, "unit": {"type": "string", "enum": ["source_local_time"]}}
              },
              "temp_in_day_high_time": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "string"}, "unit": {"type": "string", "enum": ["source_local_time"]}}
              },
              "temp_in_day_low_time": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "string"}, "unit": {"type": "string", "enum": ["source_local_time"]}}
              },
              "wind_day_high_time": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "string"}, "unit": {"type": "string", "enum": ["source_local_time"]}}
              },
              "windchill_day_low_time": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "string"}, "unit": {"type": "string", "enum": ["source_local_time"]}}
              },
              "sunrise": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "string"}, "unit": {"type": "string", "enum": ["source_local_time"]}}
              },
              "sunset": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "string"}, "unit": {"type": "string", "enum": ["source_local_time"]}}
              },
              "rain_storm_start_date": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "string"}, "unit": {"type": "string", "enum": ["source_local_date"]}}
              },
              "pressure_tendency_string": {
                "type": "object",
                "required": ["value", "unit"],
                "additionalProperties": false,
                "properties": {"value": {"type": "string"}, "unit": {"type": "string", "enum": ["label"]}}
              }
            },
            "description": "Лише наявні числові погодні параметри та текстові часи подій/опис тиску джерела; null/порожні/некоректні відсутні, нулі збережені. Ідентифікатори і мережа не публікуються. source_local_time/date передаються без вигаданого часового поясу."
          }
        }
      },
      "StationObservation": {
        "type": ["object", "null"],
        "required": ["observed_at", "sensors"],
        "properties": {
          "observed_at": {
            "type": ["string", "null"],
            "format": "date-time",
            "description": "Час зовнішньої температури; без неї — найраніший час повернутих датчиків. Для кожного датчика також передається його власний observed_at."
          },
          "sensors": {"type": "array", "minItems": 1, "items": {"$ref": "#/components/schemas/StationSensor"}}
        }
      },
      "StationObservations": {
        "type": "object",
        "required": ["source", "status", "timezone", "stale_after_seconds", "updated_at", "current", "last_observation"],
        "properties": {
          "source": {"type": ["string", "null"], "enum": ["davis_realtime", "davis_api_v2", "davis_api_v1", null]},
          "status": {"type": "string", "enum": ["online", "stale", "offline", "unavailable"]},
          "timezone": {"type": "string", "const": "Europe/Kyiv"},
          "stale_after_seconds": {"type": "integer", "const": 3600},
          "updated_at": {
            "type": ["string", "null"],
            "format": "date-time",
            "description": "Realtime: час записаного спостереження ts_utc. Davis API: час оновлення існуючого кешу SNIH; не є часом вимірювання. Актуальність визначається виключно observed_at датчиків."
          },
          "current": {"$ref": "#/components/schemas/StationObservation", "description": "Лише датчики віком 0–3600 секунд включно. null, якщо свіжих вимірювань немає."},
          "last_observation": {
            "$ref": "#/components/schemas/StationObservation",
            "description": "Останні відомі фактичні вимірювання вибраного джерела, включно із застарілими. Кожен датчик має observed_at. Це НЕ поточна погода."
          }
        },
        "description": "Повні погодні вимірювання фізичної станції. Пріоритет: свіже realtime → свіжий Davis API (затримка близько 5 хвилин допустима) → current=null. Спочатку шукається джерело зі свіжою зовнішньою температурою, потім будь-які свіжі вимірювання. Джерела не змішуються. Свіжий барометр не робить стару температуру поточною. Прогноз ніколи не підставляється. Читається той самий snig.weather-cache, що SNIH, пакетно та read-only; без крона та запитів до Davis.",
        "examples": [
          {
            "source": "davis_api_v2",
            "status": "online",
            "timezone": "Europe/Kyiv",
            "stale_after_seconds": 3600,
            "updated_at": "2026-09-09T03:07:30+00:00",
            "current": {
              "observed_at": "2026-09-09T03:00:42+00:00",
              "sensors": [
                {
                  "type": "outdoor",
                  "measurements": {
                    "temp": {"value": 11.72, "unit": "°C"},
                    "dew_point": {"value": 4.22, "unit": "°C"},
                    "wet_bulb": {"value": 7.28, "unit": "°C"},
                    "heat_index": {"value": 11.17, "unit": "°C"},
                    "wind_chill": {"value": 11, "unit": "°C"},
                    "thw_index": {"value": 10.44, "unit": "°C"},
                    "hum": {"value": 60.1, "unit": "%"},
                    "wind_speed_last": {"value": 1.341, "unit": "m/s"},
                    "wind_speed_avg_last_1_min": {"value": 1.283, "unit": "m/s"},
                    "wind_speed_avg_last_2_min": {"value": 1.533, "unit": "m/s"},
                    "wind_speed_avg_last_10_min": {"value": 2.289, "unit": "m/s"},
                    "wind_speed_hi_last_2_min": {"value": 2.682, "unit": "m/s"},
                    "wind_speed_hi_last_10_min": {"value": 5.364, "unit": "m/s"},
                    "wind_dir_last": {"value": 259, "unit": "degree"},
                    "wind_dir_scalar_avg_last_1_min": {"value": 262, "unit": "degree"},
                    "wind_dir_scalar_avg_last_2_min": {"value": 252, "unit": "degree"},
                    "wind_dir_scalar_avg_last_10_min": {"value": 234, "unit": "degree"},
                    "wind_dir_at_hi_speed_last_2_min": {"value": 275, "unit": "degree"},
                    "wind_dir_at_hi_speed_last_10_min": {"value": 247, "unit": "degree"},
                    "rain_storm_last_start_at": {"value": 1788604981, "unit": "unix_s"},
                    "rain_storm_last_end_at": {"value": 1788703260, "unit": "unix_s"},
                    "rainfall_last_15_min_mm": {"value": 0, "unit": "mm"},
                    "rainfall_last_15_min_in": {"value": 0, "unit": "in"},
                    "rainfall_last_15_min_clicks": {"value": 0, "unit": "tips"},
                    "rainfall_last_60_min_mm": {"value": 0, "unit": "mm"},
                    "rainfall_last_60_min_in": {"value": 0, "unit": "in"},
                    "rainfall_last_60_min_clicks": {"value": 0, "unit": "tips"},
                    "rainfall_last_24_hr_mm": {"value": 0, "unit": "mm"},
                    "rainfall_last_24_hr_in": {"value": 0, "unit": "in"},
                    "rainfall_last_24_hr_clicks": {"value": 0, "unit": "tips"},
                    "rainfall_daily_mm": {"value": 0, "unit": "mm"},
                    "rainfall_daily_in": {"value": 0, "unit": "in"},
                    "rainfall_daily_clicks": {"value": 0, "unit": "tips"},
                    "rainfall_monthly_mm": {"value": 62.4, "unit": "mm"},
                    "rainfall_monthly_in": {"value": 2.456693, "unit": "in"},
                    "rainfall_monthly_clicks": {"value": 312, "unit": "tips"},
                    "rainfall_year_mm": {"value": 1260, "unit": "mm"},
                    "rainfall_year_in": {"value": 49.6063, "unit": "in"},
                    "rainfall_year_clicks": {"value": 6300, "unit": "tips"},
                    "rain_storm_mm": {"value": 0, "unit": "mm"},
                    "rain_storm_in": {"value": 0, "unit": "in"},
                    "rain_storm_clicks": {"value": 0, "unit": "tips"},
                    "rain_storm_last_mm": {"value": 3.2, "unit": "mm"},
                    "rain_storm_last_in": {"value": 0.12598425, "unit": "in"},
                    "rain_storm_last_clicks": {"value": 16, "unit": "tips"},
                    "rain_rate_last_mm": {"value": 0, "unit": "mm/h"},
                    "rain_rate_last_in": {"value": 0, "unit": "in/h"},
                    "rain_rate_last_clicks": {"value": 0, "unit": "tips/h"},
                    "rain_rate_hi_mm": {"value": 0, "unit": "mm/h"},
                    "rain_rate_hi_in": {"value": 0, "unit": "in/h"},
                    "rain_rate_hi_clicks": {"value": 0, "unit": "tips/h"},
                    "rain_rate_hi_last_15_min_mm": {"value": 0, "unit": "mm/h"},
                    "rain_rate_hi_last_15_min_in": {"value": 0, "unit": "in/h"},
                    "rain_rate_hi_last_15_min_clicks": {"value": 0, "unit": "tips/h"}
                  },
                  "observed_at": "2026-09-09T03:00:42+00:00"
                },
                {
                  "type": "indoor",
                  "measurements": {
                    "temp_in": {"value": 19.61, "unit": "°C"},
                    "dew_point_in": {"value": 5.17, "unit": "°C"},
                    "heat_index_in": {"value": 18.44, "unit": "°C"},
                    "hum_in": {"value": 38.7, "unit": "%"}
                  },
                  "observed_at": "2026-09-09T03:00:42+00:00"
                },
                {
                  "type": "barometer",
                  "measurements": {
                    "bar_sea_level": {"value": 1023.333, "unit": "hPa"},
                    "bar_absolute": {"value": 1023.333, "unit": "hPa"},
                    "bar_trend": {"value": -0.745, "unit": "hPa"},
                    "bar_offset": {"value": 156.485, "unit": "hPa"}
                  },
                  "observed_at": "2026-09-09T03:00:42+00:00"
                }
              ]
            },
            "last_observation": {
              "observed_at": "2026-09-09T03:00:42+00:00",
              "sensors": [
                {
                  "type": "outdoor",
                  "measurements": {
                    "temp": {"value": 11.72, "unit": "°C"},
                    "dew_point": {"value": 4.22, "unit": "°C"},
                    "wet_bulb": {"value": 7.28, "unit": "°C"},
                    "heat_index": {"value": 11.17, "unit": "°C"},
                    "wind_chill": {"value": 11, "unit": "°C"},
                    "thw_index": {"value": 10.44, "unit": "°C"},
                    "hum": {"value": 60.1, "unit": "%"},
                    "wind_speed_last": {"value": 1.341, "unit": "m/s"},
                    "wind_speed_avg_last_1_min": {"value": 1.283, "unit": "m/s"},
                    "wind_speed_avg_last_2_min": {"value": 1.533, "unit": "m/s"},
                    "wind_speed_avg_last_10_min": {"value": 2.289, "unit": "m/s"},
                    "wind_speed_hi_last_2_min": {"value": 2.682, "unit": "m/s"},
                    "wind_speed_hi_last_10_min": {"value": 5.364, "unit": "m/s"},
                    "wind_dir_last": {"value": 259, "unit": "degree"},
                    "wind_dir_scalar_avg_last_1_min": {"value": 262, "unit": "degree"},
                    "wind_dir_scalar_avg_last_2_min": {"value": 252, "unit": "degree"},
                    "wind_dir_scalar_avg_last_10_min": {"value": 234, "unit": "degree"},
                    "wind_dir_at_hi_speed_last_2_min": {"value": 275, "unit": "degree"},
                    "wind_dir_at_hi_speed_last_10_min": {"value": 247, "unit": "degree"},
                    "rain_storm_last_start_at": {"value": 1788604981, "unit": "unix_s"},
                    "rain_storm_last_end_at": {"value": 1788703260, "unit": "unix_s"},
                    "rainfall_last_15_min_mm": {"value": 0, "unit": "mm"},
                    "rainfall_last_15_min_in": {"value": 0, "unit": "in"},
                    "rainfall_last_15_min_clicks": {"value": 0, "unit": "tips"},
                    "rainfall_last_60_min_mm": {"value": 0, "unit": "mm"},
                    "rainfall_last_60_min_in": {"value": 0, "unit": "in"},
                    "rainfall_last_60_min_clicks": {"value": 0, "unit": "tips"},
                    "rainfall_last_24_hr_mm": {"value": 0, "unit": "mm"},
                    "rainfall_last_24_hr_in": {"value": 0, "unit": "in"},
                    "rainfall_last_24_hr_clicks": {"value": 0, "unit": "tips"},
                    "rainfall_daily_mm": {"value": 0, "unit": "mm"},
                    "rainfall_daily_in": {"value": 0, "unit": "in"},
                    "rainfall_daily_clicks": {"value": 0, "unit": "tips"},
                    "rainfall_monthly_mm": {"value": 62.4, "unit": "mm"},
                    "rainfall_monthly_in": {"value": 2.456693, "unit": "in"},
                    "rainfall_monthly_clicks": {"value": 312, "unit": "tips"},
                    "rainfall_year_mm": {"value": 1260, "unit": "mm"},
                    "rainfall_year_in": {"value": 49.6063, "unit": "in"},
                    "rainfall_year_clicks": {"value": 6300, "unit": "tips"},
                    "rain_storm_mm": {"value": 0, "unit": "mm"},
                    "rain_storm_in": {"value": 0, "unit": "in"},
                    "rain_storm_clicks": {"value": 0, "unit": "tips"},
                    "rain_storm_last_mm": {"value": 3.2, "unit": "mm"},
                    "rain_storm_last_in": {"value": 0.12598425, "unit": "in"},
                    "rain_storm_last_clicks": {"value": 16, "unit": "tips"},
                    "rain_rate_last_mm": {"value": 0, "unit": "mm/h"},
                    "rain_rate_last_in": {"value": 0, "unit": "in/h"},
                    "rain_rate_last_clicks": {"value": 0, "unit": "tips/h"},
                    "rain_rate_hi_mm": {"value": 0, "unit": "mm/h"},
                    "rain_rate_hi_in": {"value": 0, "unit": "in/h"},
                    "rain_rate_hi_clicks": {"value": 0, "unit": "tips/h"},
                    "rain_rate_hi_last_15_min_mm": {"value": 0, "unit": "mm/h"},
                    "rain_rate_hi_last_15_min_in": {"value": 0, "unit": "in/h"},
                    "rain_rate_hi_last_15_min_clicks": {"value": 0, "unit": "tips/h"}
                  },
                  "observed_at": "2026-09-09T03:00:42+00:00"
                },
                {
                  "type": "indoor",
                  "measurements": {
                    "temp_in": {"value": 19.61, "unit": "°C"},
                    "dew_point_in": {"value": 5.17, "unit": "°C"},
                    "heat_index_in": {"value": 18.44, "unit": "°C"},
                    "hum_in": {"value": 38.7, "unit": "%"}
                  },
                  "observed_at": "2026-09-09T03:00:42+00:00"
                },
                {
                  "type": "barometer",
                  "measurements": {
                    "bar_sea_level": {"value": 1023.333, "unit": "hPa"},
                    "bar_absolute": {"value": 1023.333, "unit": "hPa"},
                    "bar_trend": {"value": -0.745, "unit": "hPa"},
                    "bar_offset": {"value": 156.485, "unit": "hPa"}
                  },
                  "observed_at": "2026-09-09T03:00:42+00:00"
                }
              ]
            }
          },
          {"source": null, "status": "unavailable", "timezone": "Europe/Kyiv", "stale_after_seconds": 3600, "updated_at": null, "current": null, "last_observation": null},
          {
            "source": "davis_api_v2",
            "status": "offline",
            "timezone": "Europe/Kyiv",
            "stale_after_seconds": 3600,
            "updated_at": null,
            "current": null,
            "last_observation": null
          }
        ]
      }
    }
  }
}
