changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "description": "Measurement rows, filtered and limited as requested",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "date": {
+ "description": "Measurement date (YYYY-MM-DD; first day of period for monthly/yearly)",
+ "type": "string"
+ },
+ "frost_days": {
+ "description": "Days with minimum below 0 °C (monthly/yearly)",
+ "type": "number"
+ },
+ "heat_days": {
+ "description": "Days with maximum of 30 °C or above (monthly/yearly)",
+ "type": "number"
+ },
+ "ice_days": {
+ "description": "Days with maximum below 0 °C (monthly/yearly)",
+ "type": "number"
+ },
+ "precipitation": {
+ "description": "Precipitation total, mm",
+ "type": "number"
+ },
+ "pressure_hpa": {
+ "description": "Air pressure, hPa",
+ "type": "number"
+ },
+ "radiation_w_m2": {
+ "description": "Global radiation, W/m²",
+ "type": "number"
+ },
+ "rain_days": {
+ "description": "Days with measurable precipitation (monthly/yearly)",
+ "type": "number"
+ },
+ "summer_days": {
+ "description": "Days with maximum of 25 °C or above (monthly/yearly)",
+ "type": "number"
+ },
+ "sunshine_duration_min": {
+ "description": "Sunshine duration, minutes",
+ "type": "number"
+ },
+ "temperature_max": {
+ "description": "Maximum temperature, °C",
+ "type": "number"
+ },
+ "temperature_mean": {
+ "description": "Mean temperature, °C",
+ "type": "number"
+ },
+ "temperature_min": {
+ "description": "Minimum temperature, °C",
+ "type": "number"
+ },
+ "tropical_nights": {
+ "description": "Nights with minimum of 20 °C or above (monthly/yearly)",
+ "type": "number"
+ },
+ "wind_speed_m_s": {
+ "description": "Wind speed, m/s",
+ "type": "number"
+ }
+ },
+ "required": [
+ "date"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "note": {
+ "description": "Present only when `data` is empty because the requested date range fell outside the fetched series (e.g. a daily request older than the ~2-year `_recent` window). Explains why and suggests a fallback resolution.",
+ "type": "string"
+ },
+ "resolution": {
+ "description": "Resolution the returned rows are in",
+ "enum": [
+ "daily",
+ "monthly",
+ "yearly"
+ ],
+ "type": "string"
+ },
+ "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"
+ },
+ "name": {
+ "description": "Climate station name",
+ "type": "string"
+ },
+ "network": {
+ "description": "NBCN network kind: \"nbcn\" (full climate series) or \"nbcn-precip\" (precipitation-only)",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "abbreviation",
+ "elevation",
+ "coordinates",
+ "network"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "station",
+ "resolution",
+ "data",
+ "source"
+ ],
+ "type": "object"
+}