{
  "$id": "https://json.schemastore.org/openweather.current",
  "$schema": "https://json-schema.org/draft/2019-09/schema",
  "additionalProperties": false,
  "description": "API responses from the OpenWeather Current Weather Data API from https://openweathermap.org/current",
  "properties": {
    "coord": {
      "type": "object",
      "additionalProperties": false,
      "required": ["lat", "lon"],
      "properties": {
        "lat": {
          "type": "number"
        },
        "lon": {
          "type": "number"
        }
      }
    },
    "weather": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["id", "main", "description", "icon"],
        "properties": {
          "id": {
            "type": "integer"
          },
          "main": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "icon": {
            "type": "string"
          }
        }
      }
    },
    "base": {
      "type": "string"
    },
    "main": {
      "type": "object",
      "additionalProperties": false,
      "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"
        }
      }
    },
    "visibility": {
      "type": "integer"
    },
    "wind": {
      "type": "object",
      "additionalProperties": false,
      "required": ["speed", "deg"],
      "properties": {
        "speed": {
          "type": "number"
        },
        "deg": {
          "type": "number"
        }
      }
    },
    "clouds": {
      "type": "object",
      "additionalProperties": false,
      "required": ["all"],
      "properties": {
        "all": {
          "type": "number",
          "minimum": 0
        }
      }
    },
    "dt": {
      "type": "number"
    },
    "sys": {
      "type": "object",
      "additionalProperties": false,
      "required": ["type", "id", "message", "country", "sunrise", "sunset"],
      "properties": {
        "type": {
          "type": "integer"
        },
        "id": {
          "type": "integer"
        },
        "message": {
          "type": "number"
        },
        "country": {
          "type": "string"
        },
        "sunrise": {
          "type": "integer"
        },
        "sunset": {
          "type": "integer"
        }
      }
    },
    "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"
  ],
  "title": "OpenWeather Current Weather Data API",
  "type": "object"
}