changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "additionalProperties": false,
+ "properties": {
+ "measurements": {
+ "additionalProperties": false,
+ "description": "Each measurement is present only when the station reports it",
+ "properties": {
+ "dew_point": {
+ "additionalProperties": false,
+ "properties": {
+ "unit": {
+ "type": "string"
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "value",
+ "unit"
+ ],
+ "type": "object"
+ },
+ "humidity": {
+ "additionalProperties": false,
+ "properties": {
+ "unit": {
+ "type": "string"
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "value",
+ "unit"
+ ],
+ "type": "object"
+ },
+ "precipitation": {
+ "additionalProperties": false,
+ "properties": {
+ "unit": {
+ "type": "string"
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "value",
+ "unit"
+ ],
+ "type": "object"
+ },
+ "pressure_sea_level": {
+ "additionalProperties": false,
+ "properties": {
+ "unit": {
+ "type": "string"
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "value",
+ "unit"
+ ],
+ "type": "object"
+ },
+ "pressure_station": {
+ "additionalProperties": false,
+ "properties": {
+ "unit": {
+ "type": "string"
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "value",
+ "unit"
+ ],
+ "type": "object"
+ },
+ "radiation": {
+ "additionalProperties": false,
+ "properties": {
+ "unit": {
+ "type": "string"
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "value",
+ "unit"
+ ],
+ "type": "object"
+ },
+ "snow_depth": {
+ "additionalProperties": false,
+ "properties": {
+ "unit": {
+ "type": "string"
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "value",
+ "unit"
+ ],
+ "type": "object"
+ },
+ "sunshine": {
+ "additionalProperties": false,
+ "properties": {
+ "unit": {
+ "type": "string"
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "value",
+ "unit"
+ ],
+ "type": "object"
+ },
+ "temperature": {
+ "additionalProperties": false,
+ "properties": {
+ "unit": {
+ "type": "string"
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "value",
+ "unit"
+ ],
+ "type": "object"
+ },
+ "wind_direction": {
+ "additionalProperties": false,
+ "properties": {
+ "unit": {
+ "type": "string"
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "value",
+ "unit"
+ ],
+ "type": "object"
+ },
+ "wind_gust": {
+ "additionalProperties": false,
+ "properties": {
+ "unit": {
+ "type": "string"
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "value",
+ "unit"
+ ],
+ "type": "object"
+ },
+ "wind_speed": {
+ "additionalProperties": false,
+ "properties": {
+ "unit": {
+ "type": "string"
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "value",
+ "unit"
+ ],
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "source": {
+ "description": "Data attribution",
+ "type": "string"
+ },
+ "station": {
+ "additionalProperties": false,
+ "properties": {
+ "abbreviation": {
+ "description": "Official station abbreviation (e.g. \"SMA\")",
+ "type": "string"
+ },
+ "canton": {
+ "description": "Canton abbreviation (e.g. \"ZH\")",
+ "type": "string"
+ },
+ "coordinates": {
+ "additionalProperties": false,
+ "description": "WGS84 coordinates of the station",
+ "properties": {
+ "lat": {
+ "type": "number"
+ },
+ "lon": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "lat",
+ "lon"
+ ],
+ "type": "object"
+ },
+ "distance_km": {
+ "description": "Distance from the queried location to this station, km (when resolved by proximity)",
+ "type": "number"
+ },
+ "elevation": {
+ "description": "Elevation in metres above sea level",
+ "type": "number"
+ },
+ "municipality": {
+ "type": "string"
+ },
+ "name": {
+ "description": "Station name",
+ "type": "string"
+ },
+ "network": {
+ "description": "Measurement network (\"smn\" full weather, \"smn-precip\" precipitation-only)",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "abbreviation",
+ "elevation",
+ "coordinates"
+ ],
+ "type": "object"
+ },
+ "timestamp": {
+ "description": "Measurement timestamp (ISO 8601)",
+ "type": "string"
+ },
+ "visual_observations": {
+ "additionalProperties": false,
+ "description": "Visual observations (only for 8 OBS stations: ALT, BAS, CHU, GSB, JUN, SAE, SIO, SMA)",
+ "properties": {
+ "cloud_cover_percent": {
+ "type": "number"
+ },
+ "date": {
+ "type": "string"
+ },
+ "has_fog": {
+ "type": "boolean"
+ },
+ "has_hail": {
+ "type": "boolean"
+ },
+ "has_rain": {
+ "type": "boolean"
+ },
+ "has_rain_and_snow": {
+ "type": "boolean"
+ },
+ "has_snow_coverage": {
+ "type": "boolean"
+ },
+ "has_snowfall": {
+ "type": "boolean"
+ },
+ "is_clear_day": {
+ "type": "boolean"
+ },
+ "is_overcast_day": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "date"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "station",
+ "timestamp",
+ "measurements",
+ "source"
+ ],
+ "type": "object"
+}