addedOutput schema / oneOf
Added value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "cache": {
+ "additionalProperties": false,
+ "properties": {
+ "hit": {
+ "const": true
+ },
+ "scope": {
+ "enum": [
+ "public",
+ "private"
+ ]
+ },
+ "ttl_ms": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "hit",
+ "ttl_ms",
+ "scope"
+ ],
+ "type": "object"
+ },
+ "matches": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "country": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "elevation_ft": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "iata": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "icao": {
+ "type": "string"
+ },
+ "latitude": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "longitude": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "municipality": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "icao",
+ "iata",
+ "name",
+ "type",
+ "municipality",
+ "country",
+ "latitude",
+ "longitude",
+ "elevation_ft"
+ ],
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "ok": {
+ "const": true
+ },
+ "query": {
+ "type": "string"
+ },
+ "source": {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "type": "string"
+ },
+ "licence": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "licence",
+ "kind"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "ok",
+ "query",
+ "matches",
+ "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"
+ }
+]