Weather.gov · Schema

Zone

Zone schema from weather.gov API

WeatherGovernmentUnited StatesForecastingAlertsOpen Data

Properties

Name Type Description
@context object
geometry object
@id string
@type string
id object
type object
name string
effectiveDate string
expirationDate string
state object
forecastOffice string
gridIdentifier string
awipsLocationIdentifier string
cwa array
forecastOffices array
timeZone array
observationStations array
radarStation stringnull
View JSON Schema on GitHub

JSON Schema

weather-gov-zone-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/weather-gov/refs/heads/main/json-schema/weather-gov-zone-schema.json",
  "title": "Zone",
  "description": "Zone schema from weather.gov API",
  "type": "object",
  "properties": {
    "@context": {
      "$ref": "#/components/schemas/JsonLdContext"
    },
    "geometry": {
      "$ref": "#/components/schemas/GeometryString"
    },
    "@id": {
      "type": "string",
      "format": "uri"
    },
    "@type": {
      "enum": [
        "wx:Zone"
      ],
      "type": "string"
    },
    "id": {
      "$ref": "#/components/schemas/NWSZoneID"
    },
    "type": {
      "$ref": "#/components/schemas/NWSZoneType"
    },
    "name": {
      "type": "string"
    },
    "effectiveDate": {
      "type": "string",
      "format": "date-time"
    },
    "expirationDate": {
      "type": "string",
      "format": "date-time"
    },
    "state": {
      "oneOf": [
        {
          "$ref": "#/components/schemas/StateTerritoryCode"
        },
        {
          "enum": [
            ""
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "forecastOffice": {
      "type": "string",
      "format": "uri"
    },
    "gridIdentifier": {
      "type": "string"
    },
    "awipsLocationIdentifier": {
      "type": "string"
    },
    "cwa": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/NWSForecastOfficeId"
      },
      "deprecated": true
    },
    "forecastOffices": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      },
      "deprecated": true
    },
    "timeZone": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "iana-time-zone-identifier"
      }
    },
    "observationStations": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "radarStation": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false
}