changedOutput schema / anyOf
Previous value: -[
- {
- "properties": {
- "count": {
- "type": "integer"
- },
- "currency": {
- "type": "string"
- },
- "destinations": {
- "items": {
- "properties": {
- "generated": {
- "type": "string"
- },
- "key": {
- "type": "string"
- },
- "rails": {
- "description": "one entry per rail; each carries its own `measured`, which is not the destination's",
- "items": {
- "properties": {
- "measured": {
- "properties": {
- "days": {
- "type": "integer"
- },
- "from": {
- "type": "string"
- },
- "to": {
- "type": "string"
- }
- },
- "required": [
- "days",
- "from",
- "to"
- ],
- "type": "object"
- },
- "party": {
- "properties": {
- "adults": {
- "type": "integer"
- },
- "children": {
- "type": "integer"
- }
- },
- "required": [
- "adults",
- "children"
- ],
- "type": "object"
- },
- "rail": {
- "enum": [
- "flight",
- "package"
- ],
- "type": "string"
- },
- "resort": {
- "type": "string"
- },
- "resort_key": {
- "type": "string"
- }
- },
- "required": [
- "rail",
- "party",
- "measured"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "slug": {
- "type": "string"
- },
- "title": {
- "properties": {
- "cs": {
- "type": "string"
- },
- "en": {
- "type": "string"
- }
- },
- "required": [
- "cs",
- "en"
- ],
- "type": "object"
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "key",
- "slug",
- "title",
- "url",
- "generated",
- "rails"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "disclaimer": {
- "type": "string"
- },
- "license": {
- "properties": {
- "attribution": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "url",
- "attribution"
- ],
- "type": "object"
- },
- "schema": {
- "type": "string"
- },
- "stale_rails": {
- "description": "How many of the rails in scope are past their own freshness boundary on `as_of` (Europe/Prague).",
- "properties": {
- "as_of": {
- "type": "string"
- },
- "count": {
- "type": "integer"
- },
- "keys": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "of": {
- "type": "integer"
- },
- "unknown": {
- "type": "integer"
- }
- },
- "required": [
- "as_of",
- "of",
- "count",
- "keys"
- ],
- "type": "object"
- }
- },
- "required": [
- "schema",
- "currency",
- "count",
- "stale_rails",
- "destinations",
- "disclaimer"
- ],
- "type": "object"
- },
- {
- "description": "tool-level failure, returned with isError: true",
- "properties": {
- "error": {
- "additionalProperties": true,
- "properties": {
- "code": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "count": {
+ "type": "integer"
+ },
+ "currency": {
+ "type": "string"
+ },
+ "destinations": {
+ "items": {
+ "properties": {
+ "country": {
+ "description": "the one country page this city belongs to, where the catalogue names exactly one",
+ "type": "string"
+ },
+ "generated": {
+ "type": "string"
+ },
+ "key": {
+ "type": "string"
+ },
+ "rails": {
+ "description": "one entry per rail; each carries its own `measured`, which is not the destination's",
+ "items": {
+ "properties": {
+ "measured": {
+ "properties": {
+ "days": {
+ "type": "integer"
+ },
+ "from": {
+ "type": "string"
+ },
+ "to": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "days",
+ "from",
+ "to"
+ ],
+ "type": "object"
+ },
+ "party": {
+ "properties": {
+ "adults": {
+ "type": "integer"
+ },
+ "children": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "adults",
+ "children"
+ ],
+ "type": "object"
+ },
+ "rail": {
+ "enum": [
+ "flight",
+ "package"
+ ],
+ "type": "string"
+ },
+ "resort": {
+ "type": "string"
+ },
+ "resort_key": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "rail",
+ "party",
+ "measured"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "related": {
+ "description": "the other tracked pages in the same country (a country lists its cities); a party or rail missing here may exist on one of them",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "same_airport_as": {
+ "description": "pages whose flight rail lands at an airport this one records - measured from a different departure cluster (see `origins`), so their numbers differ for a reason",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "title": {
+ "properties": {
+ "cs": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "cs",
+ "en"
+ ],
+ "type": "object"
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "key",
+ "slug",
+ "title",
+ "url",
+ "generated",
+ "related",
+ "rails"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "disclaimer": {
+ "type": "string"
+ },
+ "license": {
+ "properties": {
+ "attribution": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "url",
+ "attribution"
+ ],
+ "type": "object"
+ },
+ "schema": {
+ "type": "string"
+ },
+ "stale_rails": {
+ "description": "How many of the rails in scope are past their own freshness boundary on `as_of` (Europe/Prague).",
+ "properties": {
+ "as_of": {
+ "type": "string"
+ },
+ "count": {
+ "type": "integer"
+ },
+ "keys": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "of": {
+ "type": "integer"
+ },
+ "unknown": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "as_of",
+ "of",
+ "count",
+ "keys"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "schema",
+ "currency",
+ "count",
+ "stale_rails",
+ "destinations",
+ "disclaimer"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "tool-level failure, returned with isError: true",
+ "properties": {
+ "error": {
+ "additionalProperties": true,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]