{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sabre/json-schema/sabre-hotel-reservation-response-schema.json",
  "title": "HotelReservationResponse",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sabre-hotel-booking-api-openapi.yml#/components/schemas/HotelReservationResponse",
  "type": "object",
  "properties": {
    "ConfirmationNumber": {
      "type": "string"
    },
    "HotelConfirmationNumber": {
      "type": "string"
    },
    "Status": {
      "type": "string",
      "enum": [
        "CONFIRMED",
        "PENDING",
        "CANCELLED"
      ]
    },
    "HotelCode": {
      "type": "string"
    },
    "CheckIn": {
      "type": "string",
      "format": "date"
    },
    "CheckOut": {
      "type": "string",
      "format": "date"
    },
    "TotalCost": {
      "$ref": "#/$defs/Rate"
    },
    "GuestInfo": {
      "$ref": "#/$defs/GuestInfo"
    }
  },
  "$defs": {
    "GuestInfo": {
      "type": "object",
      "required": [
        "FirstName",
        "LastName",
        "Email"
      ],
      "properties": {
        "Title": {
          "type": "string"
        },
        "FirstName": {
          "type": "string"
        },
        "LastName": {
          "type": "string"
        },
        "Email": {
          "type": "string",
          "format": "email"
        },
        "Phone": {
          "type": "string"
        },
        "LoyaltyProgramNumber": {
          "type": "string"
        }
      }
    },
    "Rate": {
      "type": "object",
      "properties": {
        "Amount": {
          "type": "number",
          "format": "double"
        },
        "CurrencyCode": {
          "type": "string"
        }
      }
    }
  }
}