{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/openweather-road-risk-api/latest.json",
  "title": "OpenWeather Road Risk API",
  "description": "API responses from the OpenWeather Road Risk API from <https://openweathermap.org/api/road-risk>",
  "x-lintel": {
    "source": "https://www.schemastore.org/openweather.roadrisk.json",
    "sourceSha256": "1f77dfb372ef86b47f43467e5da5e0aa4e107f5a0cd20c39d57e7f533fab37fc"
  },
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "dt": {
        "type": "integer"
      },
      "coord": {
        "type": "array",
        "items": {
          "type": "number"
        }
      },
      "weather": {
        "type": "object",
        "properties": {
          "temp": {
            "type": "number"
          },
          "wind_speed": {
            "type": "number"
          },
          "wind_deg": {
            "type": "number"
          },
          "precipitation_intensity": {
            "type": "number"
          },
          "dew_point": {
            "type": "number"
          }
        },
        "additionalProperties": false
      },
      "alerts": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "sender_name": {
              "type": "string"
            },
            "event": {
              "type": "string"
            },
            "event_level": {
              "type": "integer"
            }
          },
          "required": [
            "sender_name",
            "event",
            "event_level"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "dt",
      "coord",
      "weather",
      "alerts"
    ],
    "additionalProperties": false
  }
}
