{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sabre/json-schema/sabre-hotel-search-response-schema.json",
  "title": "HotelSearchResponse",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sabre-hotel-search-api-openapi.yml#/components/schemas/HotelSearchResponse",
  "type": "object",
  "properties": {
    "Hotels": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/HotelSummary"
      }
    },
    "TotalResults": {
      "type": "integer"
    },
    "SearchId": {
      "type": "string",
      "description": "Session search identifier for subsequent requests"
    }
  },
  "$defs": {
    "Address": {
      "type": "object",
      "properties": {
        "Street": {
          "type": "string"
        },
        "City": {
          "type": "string"
        },
        "StateProvince": {
          "type": "string"
        },
        "PostalCode": {
          "type": "string"
        },
        "CountryCode": {
          "type": "string"
        }
      }
    },
    "HotelSummary": {
      "type": "object",
      "properties": {
        "HotelCode": {
          "type": "string"
        },
        "Name": {
          "type": "string"
        },
        "ChainCode": {
          "type": "string"
        },
        "StarRating": {
          "type": "integer",
          "minimum": 1,
          "maximum": 5
        },
        "Address": {
          "$ref": "#/$defs/Address"
        },
        "LowestRate": {
          "$ref": "#/$defs/Rate"
        },
        "Amenities": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "Images": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "Url": {
                "type": "string"
              },
              "Category": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "Rate": {
      "type": "object",
      "properties": {
        "Amount": {
          "type": "number",
          "format": "double"
        },
        "CurrencyCode": {
          "type": "string"
        }
      }
    }
  }
}