addedOutput schema / oneOf
Added value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "airport": {
+ "additionalProperties": false,
+ "properties": {
+ "icao": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "icao",
+ "name"
+ ],
+ "type": "object"
+ },
+ "cache": {
+ "additionalProperties": false,
+ "properties": {
+ "hit": {
+ "const": true
+ },
+ "scope": {
+ "enum": [
+ "public",
+ "private"
+ ]
+ },
+ "ttl_ms": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "hit",
+ "ttl_ms",
+ "scope"
+ ],
+ "type": "object"
+ },
+ "impact_flags": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "latest_metar": {
+ "additionalProperties": false,
+ "properties": {
+ "age_s": {
+ "description": "null: the age cannot be judged.",
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "current": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "age_s",
+ "current"
+ ],
+ "type": "object"
+ },
+ "metar": {
+ "items": {
+ "description": "One METAR or TAF as decoded from NOAA's JSON.",
+ "properties": {
+ "altimeter_hpa": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "clouds": {
+ "description": "null: NOAA sent no cloud group. []: it sent an empty one.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "base_ft": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "cover": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "cover",
+ "base_ft"
+ ],
+ "type": "object"
+ },
+ "type": [
+ "array",
+ "null"
+ ]
+ },
+ "dewpoint_c": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "flight_category": {
+ "description": "As the upstream sent it; not coerced."
+ },
+ "observation_time": {
+ "description": "As the upstream sent it; not coerced."
+ },
+ "product": {
+ "enum": [
+ "metar",
+ "taf"
+ ]
+ },
+ "raw_text": {
+ "description": "As the upstream sent it; not coerced."
+ },
+ "station_id": {
+ "description": "As the upstream sent it; not coerced."
+ },
+ "temperature_c": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "vertical_visibility_ft": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "visibility_at_least": {
+ "type": "boolean"
+ },
+ "visibility_statute_mi": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "wind_dir_deg": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "wind_gust_kt": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "wind_speed_kt": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "wind_variable": {
+ "type": "boolean"
+ },
+ "wx_string": {
+ "description": "As the upstream sent it; not coerced."
+ }
+ },
+ "required": [
+ "station_id",
+ "observation_time",
+ "raw_text",
+ "product"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "ok": {
+ "const": true
+ },
+ "source": {
+ "additionalProperties": false,
+ "properties": {
+ "licence": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "licence"
+ ],
+ "type": "object"
+ },
+ "taf": {
+ "items": {
+ "description": "One METAR or TAF as decoded from NOAA's JSON.",
+ "properties": {
+ "altimeter_hpa": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "clouds": {
+ "description": "null: NOAA sent no cloud group. []: it sent an empty one.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "base_ft": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "cover": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "cover",
+ "base_ft"
+ ],
+ "type": "object"
+ },
+ "type": [
+ "array",
+ "null"
+ ]
+ },
+ "dewpoint_c": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "flight_category": {
+ "description": "As the upstream sent it; not coerced."
+ },
+ "observation_time": {
+ "description": "As the upstream sent it; not coerced."
+ },
+ "product": {
+ "enum": [
+ "metar",
+ "taf"
+ ]
+ },
+ "raw_text": {
+ "description": "As the upstream sent it; not coerced."
+ },
+ "station_id": {
+ "description": "As the upstream sent it; not coerced."
+ },
+ "temperature_c": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "vertical_visibility_ft": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "visibility_at_least": {
+ "type": "boolean"
+ },
+ "visibility_statute_mi": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "wind_dir_deg": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "wind_gust_kt": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "wind_speed_kt": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "wind_variable": {
+ "type": "boolean"
+ },
+ "wx_string": {
+ "description": "As the upstream sent it; not coerced."
+ }
+ },
+ "required": [
+ "station_id",
+ "observation_time",
+ "raw_text",
+ "product"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "unknowns": {
+ "description": "What this answer cannot show. Non-empty means: do not conclude normality.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "upstream_time_epoch": {
+ "description": "NOAA's Date header. null: it sent none, and ages are unknown.",
+ "type": [
+ "integer",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "ok",
+ "upstream_time_epoch",
+ "airport",
+ "metar",
+ "taf",
+ "latest_metar",
+ "impact_flags",
+ "unknowns",
+ "source"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "description": "Machine-readable; stable across releases.",
+ "type": "string"
+ },
+ "details": {
+ "type": "object"
+ },
+ "hint": {
+ "description": "What to do next.",
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "retry_after_s": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "ok": {
+ "const": false
+ }
+ },
+ "required": [
+ "ok",
+ "error"
+ ],
+ "type": "object"
+ }
+]