changedOutput schema / (root)
Previous value: -{
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "additionalProperties": {},
- "properties": {
- "coverage": {
- "additionalProperties": {},
- "description": "What the search covered: counts of hotels, each null when it doesn't apply.",
- "properties": {
- "excludedNoFacilityData": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "With an amenity filter: hotels left out for listing no facilities at all, though they may have the amenity; otherwise null."
- },
- "excludedNoPrice": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "With a price filter: priced hotels left out for having no indicative price; otherwise null."
- },
- "localities": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "items": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "count": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "includes": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "members": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "place": {
- "additionalProperties": {},
- "properties": {
- "name": {
- "type": "string"
- },
- "names": {
- "additionalProperties": {},
- "properties": {
- "en": {
- "type": [
- "string",
- "null"
- ]
- },
- "zh": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "en",
- "zh"
- ],
- "type": "object"
- },
- "placeId": {
- "pattern": "^plc_\\d{1,12}$",
- "type": "string"
- }
- },
- "required": [
- "placeId",
- "name",
- "names"
- ],
- "type": "object"
- }
- },
- "required": [
- "place",
- "members"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "place": {
- "additionalProperties": {},
- "properties": {
- "name": {
- "type": "string"
- },
- "names": {
- "additionalProperties": {},
- "properties": {
- "en": {
- "type": [
- "string",
- "null"
- ]
- },
- "zh": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "en",
- "zh"
- ],
- "type": "object"
- },
- "placeId": {
- "pattern": "^plc_\\d{1,12}$",
- "type": "string"
- }
- },
- "required": [
- "placeId",
- "name",
- "names"
- ],
- "type": "object"
- },
- "total": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "place",
- "count",
- "total",
- "includes"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "more": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "unassigned": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "items",
- "unassigned",
- "more"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "For an area: its top localities, the towns its matching hotels belong to; otherwise null."
- },
- "matched": {
- "description": "Hotels that match the destination, the text and every filter but the price filter.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "nameAsText": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "When a place_name search matched few hotels: how many in its country match the name as text; otherwise null."
- },
- "poolRadiusMeters": {
- "description": "When a price sort or price filter priced only the nearest 3,000: how far the farthest of them is from the center, in meters; otherwise null.",
- "type": [
- "number",
- "null"
- ]
- },
- "priced": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Hotels priced: those on this page, or with a price sort or price filter the whole priced set (pricing.scope); null without prices."
- },
- "textAnywhere": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "With text and a place: the hotels that match the text anywhere in the place's country; otherwise null."
- },
- "withPrice": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Of those priced, how many have an indicative price; null when prices weren't asked for or are unavailable."
- },
- "withinMaxRadius": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "For a radius under 80,000 m: how many would match within 80,000 m of the center; otherwise null."
- }
- },
- "required": [
- "matched",
- "priced",
- "withPrice",
- "poolRadiusMeters",
- "excludedNoPrice",
- "excludedNoFacilityData",
- "withinMaxRadius",
- "textAnywhere",
- "localities",
- "nameAsText"
- ],
- "type": "object"
- },
- "currencyHint": {
- "additionalProperties": {},
- "description": "Present only when the search is not in that currency and the user may pay through its channel: this request comes from mainland China (request_location), or the user's latest sign-in to Fortrip was there (sign_in_location). Prices are also available in that currency; a suggestion, not a requirement.",
- "properties": {
- "currency": {
- "anyOf": [
- {
- "enum": [
- "CNY"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- "reason": {
- "anyOf": [
- {
- "enum": [
- "request_location",
- "sign_in_location"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- }
- },
- "required": [
- "currency",
- "reason"
- ],
- "type": "object"
- },
- "data": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "address": {
- "additionalProperties": {},
- "properties": {
- "countryCode": {
- "type": [
- "string",
- "null"
- ]
- },
- "line": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "locale": {
- "anyOf": [
- {
- "enum": [
- "en",
- "zh"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "text",
- "locale"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "region": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "name": {
- "type": "string"
- },
- "names": {
- "additionalProperties": {},
- "properties": {
- "en": {
- "type": [
- "string",
- "null"
- ]
- },
- "zh": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "en",
- "zh"
- ],
- "type": "object"
- },
- "placeId": {
- "pattern": "^plc_\\d{1,12}$",
- "type": "string"
- }
- },
- "required": [
- "placeId",
- "name",
- "names"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "line",
- "countryCode",
- "region"
- ],
- "type": "object"
- },
- "distanceMeters": {
- "type": [
- "number",
- "null"
- ]
- },
- "hotelId": {
- "pattern": "^htl_[0-9A-Za-z]{20}$",
- "type": "string"
- },
- "location": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "lat": {
- "type": "number"
- },
- "lng": {
- "type": "number"
- }
- },
- "required": [
- "lat",
- "lng"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "type": "string"
- },
- "names": {
- "additionalProperties": {},
- "properties": {
- "en": {
- "type": [
- "string",
- "null"
- ]
- },
- "zh": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "en",
- "zh"
- ],
- "type": "object"
- },
- "photo": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "caption": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "locale": {
- "anyOf": [
- {
- "enum": [
- "en",
- "zh"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "text",
- "locale"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "url",
- "caption"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The cover photo; null when there is none."
- },
- "price": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "basis": {
- "anyOf": [
- {
- "enum": [
- "lowest_unit"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- "fromPerRoomNight": {
- "additionalProperties": {},
- "properties": {
- "amount": {
- "pattern": "^\\d+(\\.\\d+)?$",
- "type": "string"
- },
- "currency": {
- "pattern": "^[A-Z]{3}$",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- },
- "fromPerRoomStay": {
- "additionalProperties": {},
- "properties": {
- "amount": {
- "pattern": "^\\d+(\\.\\d+)?$",
- "type": "string"
- },
- "currency": {
- "pattern": "^[A-Z]{3}$",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- },
- "kind": {
- "anyOf": [
- {
- "enum": [
- "indicative"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- }
- },
- "required": [
- "kind",
- "basis",
- "fromPerRoomNight",
- "fromPerRoomStay"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "stars": {
- "type": [
- "number",
- "null"
- ]
- },
- "timeZone": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "hotelId",
- "name",
- "names",
- "stars",
- "address",
- "location",
- "timeZone",
- "distanceMeters",
- "price",
- "photo"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "destination": {
- "anyOf": [
- {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "center": {
- "additionalProperties": {},
- "properties": {
- "basis": {
- "anyOf": [
- {
- "enum": [
- "seat",
- "capital",
- "busiest_settlement",
- "hub",
- "point"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- "location": {
- "additionalProperties": {},
- "properties": {
- "lat": {
- "type": "number"
- },
- "lng": {
- "type": "number"
- }
- },
- "required": [
- "lat",
- "lng"
- ],
- "type": "object"
- },
- "place": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "name": {
- "type": "string"
- },
- "names": {
- "additionalProperties": {},
- "properties": {
- "en": {
- "type": [
- "string",
- "null"
- ]
- },
- "zh": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "en",
- "zh"
- ],
- "type": "object"
- },
- "placeId": {
- "pattern": "^plc_\\d{1,12}$",
- "type": "string"
- }
- },
- "required": [
- "placeId",
- "name",
- "names"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "location",
- "place",
- "basis"
- ],
- "type": "object"
- },
- "kind": {
- "const": "place",
- "type": "string"
- },
- "otherMatches": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "place": {
- "additionalProperties": {},
- "properties": {
- "cityLike": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "countryCode": {
- "type": "string"
- },
- "kind": {
- "anyOf": [
- {
- "enum": [
- "country",
- "region",
- "district",
- "settlement",
- "neighbourhood",
- "island"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- "location": {
- "additionalProperties": {},
- "properties": {
- "lat": {
- "type": "number"
- },
- "lng": {
- "type": "number"
- }
- },
- "required": [
- "lat",
- "lng"
- ],
- "type": "object"
- },
- "name": {
- "type": "string"
- },
- "names": {
- "additionalProperties": {},
- "properties": {
- "en": {
- "type": [
- "string",
- "null"
- ]
- },
- "zh": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "en",
- "zh"
- ],
- "type": "object"
- },
- "placeId": {
- "pattern": "^plc_\\d{1,12}$",
- "type": "string"
- },
- "population": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "region": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "name": {
- "type": "string"
- },
- "names": {
- "additionalProperties": {},
- "properties": {
- "en": {
- "type": [
- "string",
- "null"
- ]
- },
- "zh": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "en",
- "zh"
- ],
- "type": "object"
- },
- "placeId": {
- "pattern": "^plc_\\d{1,12}$",
- "type": "string"
- }
- },
- "required": [
- "placeId",
- "name",
- "names"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "scope": {
- "anyOf": [
- {
- "enum": [
- "area",
- "radius"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- }
- },
- "required": [
- "placeId",
- "name",
- "names",
- "kind",
- "scope",
- "cityLike",
- "population",
- "region",
- "countryCode",
- "location"
- ],
- "type": "object"
- },
- "radiusMeters": {
- "type": [
- "number",
- "null"
- ]
- },
- "radiusSource": {
- "anyOf": [
- {
- "anyOf": [
- {
- "enum": [
- "default",
- "requested"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "resolution": {
- "anyOf": [
- {
- "enum": [
- "only_match",
- "dominant",
- "by_id",
- "by_country_code",
- "by_locality"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- "scope": {
- "anyOf": [
- {
- "enum": [
- "area",
- "radius",
- "locality"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- }
- },
- "required": [
- "kind",
- "place",
- "resolution",
- "otherMatches",
- "scope",
- "center",
- "radiusMeters",
- "radiusSource"
- ],
- "type": "object"
- },
- {
- "additionalProperties": {},
- "properties": {
- "center": {
- "additionalProperties": {},
- "properties": {
- "basis": {
- "anyOf": [
- {
- "enum": [
- "seat",
- "capital",
- "busiest_settlement",
- "hub",
- "point"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- "location": {
- "additionalProperties": {},
- "properties": {
- "lat": {
- "type": "number"
- },
- "lng": {
- "type": "number"
- }
- },
- "required": [
- "lat",
- "lng"
- ],
- "type": "object"
- },
- "place": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "name": {
- "type": "string"
- },
- "names": {
- "additionalProperties": {},
- "properties": {
- "en": {
- "type": [
- "string",
- "null"
- ]
- },
- "zh": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "en",
- "zh"
- ],
- "type": "object"
- },
- "placeId": {
- "pattern": "^plc_\\d{1,12}$",
- "type": "string"
- }
- },
- "required": [
- "placeId",
- "name",
- "names"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "location",
- "place",
- "basis"
- ],
- "type": "object"
- },
- "kind": {
- "const": "point",
- "type": "string"
- },
- "radiusMeters": {
- "type": "number"
- },
- "radiusSource": {
- "anyOf": [
- {
- "enum": [
- "default",
- "requested"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- "scope": {
- "anyOf": [
- {
- "enum": [
- "radius"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- }
- },
- "required": [
- "kind",
- "center",
- "scope",
- "radiusMeters",
- "radiusSource"
- ],
- "type": "object"
- },
- {
- "additionalProperties": {},
- "properties": {
- "kind": {
- "type": "string"
- }
- },
- "required": [
- "kind"
- ],
- "type": "object"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "nextCursor": {
- "description": "Pass it back as cursor for the next page; null on the last page.",
- "type": [
- "string",
- "null"
- ]
- },
- "notes": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "code": {
- "anyOf": [
- {
- "enum": [
- "indicative_prices",
- "prices_unavailable",
- "pool_limited",
- "amenities_listed_only",
- "place_resolved_dominant",
- "area_absorbed",
- "broad_area",
- "island_radius",
- "area_retired",
- "more_outside_radius",
- "more_elsewhere",
- "few_hotels_in_scope",
- "party_split_required",
- "no_results",
- "locality_available"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "pricing": {
- "additionalProperties": {},
- "properties": {
- "mode": {
- "anyOf": [
- {
- "enum": [
- "indicative",
- "none"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- "scope": {
- "anyOf": [
- {
- "anyOf": [
- {
- "enum": [
- "page",
- "pool"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "status": {
- "anyOf": [
- {
- "anyOf": [
- {
- "enum": [
- "ok",
- "unavailable"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "mode",
- "scope",
- "status"
- ],
- "type": "object"
- },
- "sort": {
- "anyOf": [
- {
- "enum": [
- "distance",
- "relevance",
- "stars_desc",
- "price_asc",
- "price_desc"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- "stay": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "checkIn": {
- "type": "string"
- },
- "checkOut": {
- "type": "string"
- },
- "rooms": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "adults": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "childrenAges": {
- "items": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "type": "array"
- }
- },
- "required": [
- "adults",
- "childrenAges"
- ],
- "type": "object"
- },
- "minItems": 1,
- "type": "array"
- }
- },
- "required": [
- "checkIn",
- "checkOut",
- "rooms"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "text": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "match": {
- "anyOf": [
- {
- "enum": [
- "exact"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- "value": {
- "type": "string"
- }
- },
- "required": [
- "value",
- "match"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "destination",
- "text",
- "stay",
- "pricing",
- "sort",
- "coverage",
- "data",
- "nextCursor",
- "notes"
- ],
- "type": "object"
-}New value: +null