addedOutput schema / oneOf
Added value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "airport": {
+ "additionalProperties": false,
+ "properties": {
+ "icao": {
+ "type": "string"
+ },
+ "municipality": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "icao",
+ "name",
+ "municipality"
+ ],
+ "type": "object"
+ },
+ "assessment": {
+ "additionalProperties": false,
+ "properties": {
+ "advisory_only": {
+ "const": true
+ },
+ "legs_without_evidence": {
+ "items": {
+ "enum": [
+ "weather",
+ "traffic",
+ "movements"
+ ]
+ },
+ "type": "array"
+ },
+ "reason_details": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "leg": {
+ "enum": [
+ "weather",
+ "traffic",
+ "movements"
+ ]
+ },
+ "observations": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "reason": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reason",
+ "leg",
+ "observations"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "reasons": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "severity": {
+ "description": "unknown outranks elevated: a leg that cannot be seen is not evidence of calm.",
+ "enum": [
+ "low",
+ "elevated",
+ "high",
+ "unknown"
+ ]
+ },
+ "unknowns": {
+ "description": "What this answer cannot show. Non-empty means: do not conclude normality.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "why_not_higher": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "why_not_lower": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "severity",
+ "reasons",
+ "reason_details",
+ "why_not_higher",
+ "why_not_lower",
+ "unknowns",
+ "legs_without_evidence",
+ "advisory_only"
+ ],
+ "type": "object"
+ },
+ "bookkeeping": {
+ "additionalProperties": false,
+ "properties": {
+ "credits_remaining_upstream": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "credits_spent": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "credits_spent",
+ "credits_remaining_upstream"
+ ],
+ "type": "object"
+ },
+ "counts": {
+ "additionalProperties": false,
+ "properties": {
+ "aircraft_in_search_box": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "airborne": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "count": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "listed": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "on_ground": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "received": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "truncated": {
+ "type": "boolean"
+ },
+ "unreadable": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "count",
+ "received",
+ "unreadable",
+ "listed",
+ "airborne",
+ "on_ground",
+ "truncated"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "arrivals": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "count": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "received": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "unreadable": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "count",
+ "received",
+ "unreadable"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "departures": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "count": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "received": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "unreadable": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "count",
+ "received",
+ "unreadable"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "movements_window_minutes": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "search_radius_nm": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "arrivals",
+ "departures",
+ "movements_window_minutes",
+ "aircraft_in_search_box",
+ "search_radius_nm"
+ ],
+ "type": "object"
+ },
+ "credentials": {
+ "enum": [
+ "client_credentials",
+ "anonymous",
+ "none"
+ ]
+ },
+ "degraded": {
+ "description": "Legs that could not be read, as leg:reason.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "evidence": {
+ "additionalProperties": false,
+ "properties": {
+ "movements_summary": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "arrivals": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "departures": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "arrivals",
+ "departures"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "traffic_counts": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "airborne": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "on_ground": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "received": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "returned": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "unreadable": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "returned",
+ "airborne",
+ "on_ground",
+ "received",
+ "unreadable"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "weather": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "weather",
+ "movements_summary",
+ "traffic_counts"
+ ],
+ "type": "object"
+ },
+ "legs": {
+ "additionalProperties": false,
+ "properties": {
+ "movements": {
+ "additionalProperties": false,
+ "properties": {
+ "age_s": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "data_time_epoch": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "error": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "source": {
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "observed",
+ "empty",
+ "not_current",
+ "unavailable",
+ "not_fetched"
+ ]
+ },
+ "upstream_time_epoch": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "status",
+ "source",
+ "upstream_time_epoch",
+ "data_time_epoch",
+ "age_s",
+ "error"
+ ],
+ "type": "object"
+ },
+ "traffic": {
+ "additionalProperties": false,
+ "properties": {
+ "age_s": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "data_time_epoch": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "error": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "source": {
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "observed",
+ "empty",
+ "not_current",
+ "unavailable",
+ "not_fetched"
+ ]
+ },
+ "upstream_time_epoch": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "status",
+ "source",
+ "upstream_time_epoch",
+ "data_time_epoch",
+ "age_s",
+ "error"
+ ],
+ "type": "object"
+ },
+ "weather": {
+ "additionalProperties": false,
+ "properties": {
+ "age_s": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "data_time_epoch": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "error": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "source": {
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "observed",
+ "empty",
+ "not_current",
+ "unavailable",
+ "not_fetched"
+ ]
+ },
+ "upstream_time_epoch": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "status",
+ "source",
+ "upstream_time_epoch",
+ "data_time_epoch",
+ "age_s",
+ "error"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "weather",
+ "traffic",
+ "movements"
+ ],
+ "type": "object"
+ },
+ "ok": {
+ "const": true
+ },
+ "source": {
+ "additionalProperties": false,
+ "properties": {
+ "traffic_and_movements": {
+ "type": "string"
+ },
+ "weather": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "weather",
+ "traffic_and_movements"
+ ],
+ "type": "object"
+ },
+ "upstream_time_epoch": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "weather": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "age_s": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "category": {
+ "description": "As the upstream sent it; not coerced."
+ },
+ "ceiling": {
+ "additionalProperties": false,
+ "properties": {
+ "basis": {
+ "type": "string"
+ },
+ "ft": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "ft",
+ "basis"
+ ],
+ "type": "object"
+ },
+ "current": {
+ "type": "boolean"
+ },
+ "observed_at": {
+ "description": "As the upstream sent it; not coerced."
+ },
+ "raw": {
+ "description": "As the upstream sent it; not coerced."
+ },
+ "significant_weather": {
+ "description": "As the upstream sent it; not coerced."
+ },
+ "station": {
+ "description": "As the upstream sent it; not coerced."
+ },
+ "visibility": {
+ "additionalProperties": false,
+ "properties": {
+ "at_least": {
+ "type": "boolean"
+ },
+ "statute_mi": {
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "statute_mi",
+ "at_least"
+ ],
+ "type": "object"
+ },
+ "wind": {
+ "additionalProperties": false,
+ "properties": {
+ "direction_deg": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "gust_kt": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "speed_kt": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "variable": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "direction_deg",
+ "variable",
+ "speed_kt",
+ "gust_kt"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "station",
+ "observed_at",
+ "age_s",
+ "current",
+ "category",
+ "ceiling",
+ "visibility",
+ "wind",
+ "significant_weather",
+ "raw"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "ok",
+ "upstream_time_epoch",
+ "credentials",
+ "airport",
+ "assessment",
+ "counts",
+ "weather",
+ "legs",
+ "evidence",
+ "degraded",
+ "bookkeeping",
+ "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"
+ }
+]