{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vedarai-ru/json-schema/vedarai-ru-volcanic-response-schema.json",
  "title": "VolcanicResponse",
  "description": "До 20 событий за 7 суток. Сбой основного запроса тоже отвечает 200: events пуст, checked_at null и есть поле error.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vedarai-ru-openapi.yml#/components/schemas/VolcanicResponse",
  "type": "object",
  "required": [
    "events",
    "statuses"
  ],
  "properties": {
    "events": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "title",
          "severity",
          "created_at",
          "active"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "severity": {
            "type": "integer"
          },
          "affected_zones": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "source_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "active": {
            "type": "boolean"
          }
        }
      }
    },
    "checked_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "statuses": {
      "type": "object",
      "properties": {
        "elevated": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "name",
              "color"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "color": {
                "type": "string",
                "enum": [
                  "yellow",
                  "orange",
                  "red"
                ]
              },
              "summary": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "ash_height_m": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "observed_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "source_url": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        },
        "total": {
          "type": [
            "integer",
            "null"
          ]
        },
        "green": {
          "type": [
            "integer",
            "null"
          ]
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "error": {
      "type": "string",
      "description": "Только при сбое"
    }
  }
}