{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vedarai-ru/json-schema/vedarai-ru-seismic-response-schema.json",
  "title": "SeismicResponse",
  "description": "Без параметра hours — лента КБГС РАН или USGS (до 15 событий за 48 ч); с hours — толчки из external_alerts за окно, до 500.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vedarai-ru-openapi.yml#/components/schemas/SeismicResponse",
  "type": "object",
  "required": [
    "events"
  ],
  "properties": {
    "events": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "magnitude",
          "time"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "magnitude": {
            "type": "number"
          },
          "place": {
            "type": "string"
          },
          "time": {
            "type": "integer",
            "description": "Unix-время в миллисекундах"
          },
          "depth": {
            "type": [
              "number",
              "null"
            ]
          },
          "lat": {
            "type": [
              "number",
              "null"
            ]
          },
          "lng": {
            "type": [
              "number",
              "null"
            ]
          }
        }
      }
    },
    "source": {
      "type": "string",
      "enum": [
        "kbgsras",
        "usgs",
        "external_alerts"
      ]
    },
    "hours": {
      "type": "integer"
    },
    "updatedAt": {
      "type": "string"
    },
    "checkedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "fromCache": {
      "type": "boolean"
    }
  }
}