{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/openweather-current-weather-api/latest.json",
  "title": "OpenWeather Current Weather Data API",
  "description": "API responses from the OpenWeather Current Weather Data API from <https://openweathermap.org/current>",
  "x-lintel": {
    "source": "https://www.schemastore.org/openweather.current.json",
    "sourceSha256": "c6a48d6d58bc8e03e8f605865ca8757406dcdffc4760c5a8e41f29756e6f0286"
  },
  "type": "object",
  "properties": {
    "coord": {
      "type": "object",
      "properties": {
        "lat": {
          "type": "number"
        },
        "lon": {
          "type": "number"
        }
      },
      "required": [
        "lat",
        "lon"
      ],
      "additionalProperties": false
    },
    "weather": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "main": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "icon": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "main",
          "description",
          "icon"
        ],
        "additionalProperties": false
      }
    },
    "base": {
      "type": "string"
    },
    "main": {
      "type": "object",
      "properties": {
        "temp": {
          "type": "number"
        },
        "feels_like": {
          "type": "number"
        },
        "temp_min": {
          "type": "number"
        },
        "temp_max": {
          "type": "number"
        },
        "pressure": {
          "type": "number"
        },
        "humidity": {
          "type": "number"
        },
        "sea_level": {
          "type": "number"
        },
        "grnd_level": {
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "visibility": {
      "type": "integer"
    },
    "wind": {
      "type": "object",
      "properties": {
        "speed": {
          "type": "number"
        },
        "deg": {
          "type": "number"
        }
      },
      "required": [
        "speed",
        "deg"
      ],
      "additionalProperties": false
    },
    "clouds": {
      "type": "object",
      "properties": {
        "all": {
          "type": "number",
          "minimum": 0
        }
      },
      "required": [
        "all"
      ],
      "additionalProperties": false
    },
    "dt": {
      "type": "number"
    },
    "sys": {
      "type": "object",
      "properties": {
        "type": {
          "type": "integer"
        },
        "id": {
          "type": "integer"
        },
        "message": {
          "type": "number"
        },
        "country": {
          "type": "string"
        },
        "sunrise": {
          "type": "integer"
        },
        "sunset": {
          "type": "integer"
        }
      },
      "required": [
        "type",
        "id",
        "message",
        "country",
        "sunrise",
        "sunset"
      ],
      "additionalProperties": false
    },
    "timezone": {
      "type": "integer"
    },
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "cod": {
      "type": "integer"
    }
  },
  "required": [
    "coord",
    "weather",
    "base",
    "main",
    "visibility",
    "wind",
    "clouds",
    "dt",
    "sys",
    "timezone",
    "id",
    "name",
    "cod"
  ],
  "additionalProperties": false
}
