Xweather · Schema

AlertsResponse

AlertsResponse schema from Xweather Weather API

Air QualityCompanyDataForecastsLightningMaritimeObservationsSevere WeatherWeather
View JSON Schema on GitHub

JSON Schema

xweather-alerts-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/xweather/refs/heads/main/json-schema/xweather-alerts-response-schema.json",
  "title": "AlertsResponse",
  "description": "AlertsResponse schema from Xweather Weather API",
  "allOf": [
    {
      "$ref": "#/components/schemas/ApiResponse"
    },
    {
      "type": "object",
      "properties": {
        "response": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "loc": {
                "$ref": "#/components/schemas/Location"
              },
              "alerts": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Alert"
                }
              }
            }
          }
        }
      }
    }
  ]
}