changedOutput schema / (root)
Previous value: -{
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "additionalProperties": {},
- "properties": {
- "hotels": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "hotel": {
- "additionalProperties": {},
- "properties": {
- "hotelId": {
- "pattern": "^htl_[0-9A-Za-z]{20}$",
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "names": {
- "additionalProperties": {},
- "properties": {
- "en": {
- "type": [
- "string",
- "null"
- ]
- },
- "zh": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "en",
- "zh"
- ],
- "type": "object"
- }
- },
- "required": [
- "hotelId",
- "name",
- "names"
- ],
- "type": "object"
- },
- "offers": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "cancellation": {
- "additionalProperties": {},
- "description": "The cancellation terms, read at asOf.",
- "properties": {
- "asOf": {
- "description": "When these terms were read: status and penalties are as of this time.",
- "pattern": "^\\d{4}-\\d{2}-\\d{2}T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?Z$",
- "type": "string"
- },
- "freeCancellationEndsAt": {
- "anyOf": [
- {
- "pattern": "^\\d{4}-\\d{2}-\\d{2}T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?Z$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "penalties": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "amount": {
- "additionalProperties": {},
- "properties": {
- "amount": {
- "pattern": "^\\d+(\\.\\d+)?$",
- "type": "string"
- },
- "currency": {
- "pattern": "^[A-Z]{3}$",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- },
- "startsAt": {
- "anyOf": [
- {
- "pattern": "^\\d{4}-\\d{2}-\\d{2}T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?Z$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "startsAt",
- "amount"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "status": {
- "anyOf": [
- {
- "enum": [
- "free",
- "partial_penalty",
- "non_refundable",
- "unknown"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- "timeZone": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "status",
- "asOf",
- "freeCancellationEndsAt",
- "penalties",
- "timeZone"
- ],
- "type": "object"
- },
- "confirmation": {
- "additionalProperties": {},
- "description": "How the hotel confirms a booking of this offer.",
- "properties": {
- "mode": {
- "anyOf": [
- {
- "enum": [
- "instant",
- "on_request",
- "unknown"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ],
- "description": "instant: the hotel confirms the booking as soon as it is made. on_request: the hotel confirms or refuses it later, within withinMinutes when stated. unknown: not stated."
- },
- "withinMinutes": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "For on_request, the minutes the hotel takes to confirm; null when instant or not stated."
- }
- },
- "required": [
- "mode",
- "withinMinutes"
- ],
- "type": "object"
- },
- "expiresAt": {
- "pattern": "^\\d{4}-\\d{2}-\\d{2}T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?Z$",
- "type": "string"
- },
- "hotel": {
- "additionalProperties": {},
- "properties": {
- "hotelId": {
- "pattern": "^htl_[0-9A-Za-z]{20}$",
- "type": "string"
- },
- "meals": {
- "additionalProperties": {},
- "description": "What the rate includes to eat. known false: the meals are unknown, not none, and included, unspecifiedMainMeals and allInclusive are null.",
- "properties": {
- "allInclusive": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "guestsCoveredPerRoom": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "How many guests in each room the meals are for; fewer than the guests in the room means not everyone gets them. null when not stated."
- },
- "included": {
- "anyOf": [
- {
- "items": {
- "anyOf": [
- {
- "enum": [
- "breakfast",
- "lunch",
- "dinner"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ]
- },
- "known": {
- "type": "boolean"
- },
- "label": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "locale": {
- "anyOf": [
- {
- "anyOf": [
- {
- "enum": [
- "en",
- "zh"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "text",
- "locale"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "unspecifiedMainMeals": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Main meals a day beyond included that the rate doesn't name (e.g. 1 when a half-board rate doesn't say lunch or dinner); null when known is false."
- }
- },
- "required": [
- "known",
- "included",
- "unspecifiedMainMeals",
- "allInclusive",
- "guestsCoveredPerRoom",
- "label"
- ],
- "type": "object"
- },
- "room": {
- "additionalProperties": {},
- "properties": {
- "areaSqm": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "max": {
- "type": "number"
- },
- "min": {
- "type": "number"
- }
- },
- "required": [
- "min",
- "max"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "beds": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "locale": {
- "anyOf": [
- {
- "anyOf": [
- {
- "enum": [
- "en",
- "zh"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "text",
- "locale"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "maxOccupancy": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "locale": {
- "anyOf": [
- {
- "anyOf": [
- {
- "enum": [
- "en",
- "zh"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "text",
- "locale"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "window": {
- "anyOf": [
- {
- "anyOf": [
- {
- "enum": [
- "yes",
- "no",
- "partial"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "name",
- "beds",
- "areaSqm",
- "maxOccupancy",
- "window"
- ],
- "type": "object"
- },
- "roomCount": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "hotelId",
- "room",
- "roomCount",
- "meals"
- ],
- "type": "object"
- },
- "offerId": {
- "pattern": "^off_[0-9A-Za-z]{20}$",
- "type": "string"
- },
- "price": {
- "additionalProperties": {},
- "properties": {
- "payAtProperty": {
- "additionalProperties": {},
- "description": "Fees paid at the property, on top of price.total, in the property's currency, not converted. disclosure incomplete: there may be fees not listed.",
- "properties": {
- "disclosure": {
- "anyOf": [
- {
- "enum": [
- "complete",
- "incomplete"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- "items": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "amount": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "amount": {
- "pattern": "^\\d+(\\.\\d+)?$",
- "type": "string"
- },
- "currency": {
- "pattern": "^[A-Z]{3}$",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "basis": {
- "anyOf": [
- {
- "enum": [
- "per_stay",
- "per_night",
- "per_person",
- "per_person_per_night",
- "unknown"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- "collectedAt": {
- "anyOf": [
- {
- "enum": [
- "property",
- "unknown"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- "label": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "locale": {
- "anyOf": [
- {
- "anyOf": [
- {
- "enum": [
- "en",
- "zh"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "text",
- "locale"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "mandatory": {
- "type": "boolean"
- }
- },
- "required": [
- "label",
- "amount",
- "mandatory",
- "basis",
- "collectedAt"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "disclosure",
- "items"
- ],
- "type": "object"
- },
- "perNightAllRooms": {
- "additionalProperties": {},
- "description": "price.total divided by the nights: all rooms, one night. A search's fromPerRoomNight is for one room; divide by roomCount to compare.",
- "properties": {
- "amount": {
- "pattern": "^\\d+(\\.\\d+)?$",
- "type": "string"
- },
- "currency": {
- "pattern": "^[A-Z]{3}$",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- },
- "total": {
- "additionalProperties": {},
- "properties": {
- "amount": {
- "pattern": "^\\d+(\\.\\d+)?$",
- "type": "string"
- },
- "currency": {
- "pattern": "^[A-Z]{3}$",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- }
- },
- "required": [
- "total",
- "perNightAllRooms",
- "payAtProperty"
- ],
- "type": "object"
- },
- "type": {
- "anyOf": [
- {
- "enum": [
- "hotel"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ]
- }
- },
- "required": [
- "offerId",
- "type",
- "expiresAt",
- "hotel",
- "price",
- "cancellation",
- "confirmation"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "omitted": {
- "additionalProperties": {},
- "description": "How many offers each selection step left out.",
- "properties": {
- "byFilters": {
- "description": "Offers left out by filters.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "byLimit": {
- "description": "Offers left out by limitPerHotel.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "byNationality": {
- "description": "Offers left out because the hotel sells them only to guests of some nationalities; Fortrip can't book them.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "dominated": {
- "description": "Offers left out because another offer of the same room is as good on price and every term, or can't be told apart from one kept.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "unreadable": {
- "description": "Offers left out because their details came back incomplete or inconsistent.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "byNationality",
- "byFilters",
- "dominated",
- "unreadable",
- "byLimit"
- ],
- "type": "object"
- }
- },
- "required": [
- "hotel",
- "offers",
- "omitted"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "stay": {
- "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"
- },
- "unavailable": {
- "items": {
- "additionalProperties": {},
- "properties": {
- "hotelId": {
- "pattern": "^htl_[0-9A-Za-z]{20}$",
- "type": "string"
- },
- "omitted": {
- "anyOf": [
- {
- "additionalProperties": {},
- "description": "How many offers each selection step left out.",
- "properties": {
- "byFilters": {
- "description": "Offers left out by filters.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "byLimit": {
- "description": "Offers left out by limitPerHotel.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "byNationality": {
- "description": "Offers left out because the hotel sells them only to guests of some nationalities; Fortrip can't book them.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "dominated": {
- "description": "Offers left out because another offer of the same room is as good on price and every term, or can't be told apart from one kept.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "unreadable": {
- "description": "Offers left out because their details came back incomplete or inconsistent.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "byNationality",
- "byFilters",
- "dominated",
- "unreadable",
- "byLimit"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "reason": {
- "anyOf": [
- {
- "enum": [
- "sold_out",
- "no_matching_offers",
- "nationality_restricted",
- "offers_unreadable",
- "not_found",
- "supplier_unavailable",
- "stay_in_past"
- ],
- "type": "string"
- },
- {
- "type": "string"
- }
- ],
- "description": "Why the hotel has no offers: sold_out (nothing left for the stay), no_matching_offers (the filters left none), nationality_restricted (the hotel sells this stay only to guests of some nationalities; Fortrip can't book it), offers_unreadable (its offers came back incomplete or inconsistent), not_found (Fortrip has no bookable hotel with this hotelId), supplier_unavailable (offers couldn't be fetched this time; try again), stay_in_past (check-in has passed in the hotel's time zone)."
- }
- },
- "required": [
- "hotelId",
- "reason",
- "omitted"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "stay",
- "hotels",
- "unavailable"
- ],
- "type": "object"
-}New value: +null