changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "allOf": [
- {
- "if": {
- "properties": {
- "status": {
- "enum": [
- "ok"
- ]
- }
- },
- "required": [
- "status"
- ]
- },
- "then": {
- "required": [
- "property",
- "roomtype",
- "checkin",
- "checkout",
- "nights",
- "estimate",
- "links",
- "notes"
- ]
- }
- },
- {
- "if": {
- "properties": {
- "status": {
- "enum": [
- "legacy_result"
- ]
- }
- },
- "required": [
- "status"
- ]
- },
- "then": {
- "required": [
- "legacyResult"
- ]
- }
- }
- ],
- "properties": {
- "checkin": {
- "type": "string"
- },
- "checkout": {
- "type": "string"
- },
- "estimate": {
- "additionalProperties": false,
- "properties": {
- "basis": {
- "type": "string"
- },
- "petDeposit": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "minimum": 0,
- "type": "number"
- },
- "collectedAt": {
- "type": "string"
- },
- "refundable": {
- "type": "boolean"
- }
- },
- "required": [
- "amount",
- "refundable",
- "collectedAt"
- ],
- "type": "object"
- },
- "subtotal": {
- "minimum": 0,
- "type": "number"
- },
- "taxes": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "minimum": 0,
- "type": "number"
- },
- "label": {
- "type": "string"
- },
- "percent": {
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "label",
- "percent",
- "amount"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "total": {
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "basis",
- "subtotal",
- "total",
- "taxes"
- ],
- "type": "object"
- },
- "latestCheckout": {
- "type": "string"
- },
- "legacyResult": {
- "type": "string"
- },
- "links": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "maximumNights": {
- "minimum": 0,
- "type": "integer"
- },
- "minimumNights": {
- "type": "number"
- },
- "nights": {
- "minimum": 0,
- "type": "integer"
- },
- "notes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "properties": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "address": {
- "type": "string"
- },
- "link": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "officePhone": {
- "type": "string"
- },
- "phone": {
- "type": "string"
- },
- "rates": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "dayDisplay": {
- "type": "number"
- },
- "nightly": {
- "type": "number"
- },
- "roomtype": {
- "type": "string"
- },
- "upTo30Day": {
- "type": "number"
- },
- "weekly": {
- "type": "number"
- }
- },
- "required": [],
- "type": "object"
- },
- "type": "array"
- },
- "roomTypes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "required": [],
- "type": "object"
- },
- "type": "array"
- },
- "property": {
- "type": "string"
- },
- "reason": {
- "type": "string"
- },
- "roomTypes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "roomtype": {
- "type": "string"
- },
- "status": {
- "enum": [
- "ok",
- "available",
- "full",
- "partial",
- "minimum_stay",
- "invalid_input",
- "stay_limit",
- "unavailable",
- "verification_required",
- "cancelled",
- "legacy_result"
- ]
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "status",
- "text"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "allOf": [
- {
- "if": {
- "properties": {
- "status": {
- "enum": [
- "ok"
- ]
- }
- }
- },
- "then": {
- "required": [
- "property",
- "roomType",
- "checkin",
- "checkout",
- "nights",
- "basis",
- "prices",
- "subtotal",
- "tax",
- "total",
- "taxPercent",
- "links"
- ]
- }
- },
- {
- "if": {
- "properties": {
- "status": {
- "const": "minimum_stay"
- }
- }
- },
- "then": {
- "required": [
- "property",
- "roomType",
- "minimumNights",
- "taxPercent",
- "links"
- ]
- }
- }
- ],
- "properties": {
- "basis": {
- "type": "string"
- },
- "checkin": {
- "type": "string"
- },
- "checkout": {
- "type": "string"
- },
- "latestCheckout": {
- "type": "string"
- },
- "links": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "maximumNights": {
- "type": "integer"
- },
- "minimumNights": {
- "type": "integer"
- },
- "nights": {
- "type": "integer"
- },
- "notes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "otherProperties": {
- "type": "integer"
- },
- "prices": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "type": "number"
- },
- "cents": {
- "type": "integer"
- },
- "currency": {
- "const": "USD"
- },
- "label": {
- "type": "string"
- }
- },
- "required": [
- "label",
- "amount",
- "cents",
- "currency"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "property": {
- "type": "string"
- },
- "reason": {
- "type": "string"
- },
- "roomType": {
- "type": "string"
- },
- "roomTypes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "status": {
- "enum": [
- "ok",
- "minimum_stay",
- "invalid_input"
- ]
- },
- "subtotal": {
- "type": "number"
- },
- "tax": {
- "type": "number"
- },
- "taxPercent": {
- "type": "number"
- },
- "text": {
- "type": "string"
- },
- "total": {
- "type": "number"
- }
- },
- "required": [
- "status",
- "text"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "if": {
+ "properties": {
+ "status": {
+ "enum": [
+ "ok"
+ ]
+ }
+ },
+ "required": [
+ "status"
+ ]
+ },
+ "then": {
+ "required": [
+ "property",
+ "roomtype",
+ "checkin",
+ "checkout",
+ "nights",
+ "estimate",
+ "links",
+ "notes"
+ ]
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "status": {
+ "enum": [
+ "legacy_result"
+ ]
+ }
+ },
+ "required": [
+ "status"
+ ]
+ },
+ "then": {
+ "required": [
+ "legacyResult"
+ ]
+ }
+ }
+ ],
+ "properties": {
+ "checkin": {
+ "type": "string"
+ },
+ "checkout": {
+ "type": "string"
+ },
+ "estimate": {
+ "additionalProperties": false,
+ "properties": {
+ "basis": {
+ "type": "string"
+ },
+ "petDeposit": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "collectedAt": {
+ "type": "string"
+ },
+ "refundable": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "amount",
+ "refundable",
+ "collectedAt"
+ ],
+ "type": "object"
+ },
+ "subtotal": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "taxes": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "label": {
+ "type": "string"
+ },
+ "percent": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "label",
+ "percent",
+ "amount"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "total": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "basis",
+ "subtotal",
+ "total",
+ "taxes"
+ ],
+ "type": "object"
+ },
+ "latestCheckout": {
+ "type": "string"
+ },
+ "legacyResult": {
+ "type": "string"
+ },
+ "links": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "maximumNights": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "minimumNights": {
+ "type": "number"
+ },
+ "nights": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "notes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "office": {
+ "type": "object"
+ },
+ "properties": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "link": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "officePhone": {
+ "type": "string"
+ },
+ "phone": {
+ "type": "string"
+ },
+ "rates": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "dayDisplay": {
+ "type": "number"
+ },
+ "nightly": {
+ "type": "number"
+ },
+ "roomtype": {
+ "type": "string"
+ },
+ "upTo30Day": {
+ "type": "number"
+ },
+ "weekly": {
+ "type": "number"
+ }
+ },
+ "required": [],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "roomTypes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "property": {
+ "type": "string"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "roomTypes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "roomtype": {
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "ok",
+ "available",
+ "full",
+ "partial",
+ "minimum_stay",
+ "invalid_input",
+ "stay_limit",
+ "unavailable",
+ "verification_required",
+ "cancelled",
+ "legacy_result"
+ ]
+ },
+ "text": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "text"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "if": {
+ "properties": {
+ "status": {
+ "enum": [
+ "ok"
+ ]
+ }
+ }
+ },
+ "then": {
+ "required": [
+ "property",
+ "roomType",
+ "checkin",
+ "checkout",
+ "nights",
+ "basis",
+ "prices",
+ "subtotal",
+ "tax",
+ "total",
+ "taxPercent",
+ "links"
+ ]
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "status": {
+ "const": "minimum_stay"
+ }
+ }
+ },
+ "then": {
+ "required": [
+ "property",
+ "roomType",
+ "minimumNights",
+ "taxPercent",
+ "links"
+ ]
+ }
+ }
+ ],
+ "properties": {
+ "basis": {
+ "type": "string"
+ },
+ "checkin": {
+ "type": "string"
+ },
+ "checkout": {
+ "type": "string"
+ },
+ "latestCheckout": {
+ "type": "string"
+ },
+ "links": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "maximumNights": {
+ "type": "integer"
+ },
+ "minimumNights": {
+ "type": "integer"
+ },
+ "nights": {
+ "type": "integer"
+ },
+ "notes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "office": {
+ "type": "object"
+ },
+ "otherProperties": {
+ "type": "integer"
+ },
+ "prices": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "type": "number"
+ },
+ "cents": {
+ "type": "integer"
+ },
+ "currency": {
+ "const": "USD"
+ },
+ "label": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "label",
+ "amount",
+ "cents",
+ "currency"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "property": {
+ "type": "string"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "roomType": {
+ "type": "string"
+ },
+ "roomTypes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "status": {
+ "enum": [
+ "ok",
+ "minimum_stay",
+ "invalid_input"
+ ]
+ },
+ "subtotal": {
+ "type": "number"
+ },
+ "tax": {
+ "type": "number"
+ },
+ "taxPercent": {
+ "type": "number"
+ },
+ "text": {
+ "type": "string"
+ },
+ "total": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "status",
+ "text"
+ ],
+ "type": "object"
+ }
+]