{
  "$id": "https://json.schemastore.org/openweather.roadrisk",
  "$schema": "https://json-schema.org/draft/2019-09/schema",
  "description": "API responses from the OpenWeather Road Risk API from https://openweathermap.org/api/road-risk",
  "items": {
    "type": "object",
    "additionalProperties": false,
    "required": ["dt", "coord", "weather", "alerts"],
    "properties": {
      "dt": {
        "type": "integer"
      },
      "coord": {
        "type": "array",
        "items": {
          "type": "number"
        }
      },
      "weather": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "temp": {
            "type": "number"
          },
          "wind_speed": {
            "type": "number"
          },
          "wind_deg": {
            "type": "number"
          },
          "precipitation_intensity": {
            "type": "number"
          },
          "dew_point": {
            "type": "number"
          }
        }
      },
      "alerts": {
        "type": "array",
        "items": {
          "type": "object",
          "additionalProperties": false,
          "required": ["sender_name", "event", "event_level"],
          "properties": {
            "sender_name": {
              "type": "string"
            },
            "event": {
              "type": "string"
            },
            "event_level": {
              "type": "integer"
            }
          }
        }
      }
    }
  },
  "title": "OpenWeather Road Risk API",
  "type": "array"
}
