{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/threshold-rentals/json-schema/threshold-rentals-booking-request-schema.json",
  "title": "BookingRequest",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/threshold-rentals-openapi.json#/components/schemas/BookingRequest",
  "type": "object",
  "required": [
    "quote_id",
    "buyer",
    "house_rules_accepted"
  ],
  "properties": {
    "quote_id": {
      "type": "string"
    },
    "buyer": {
      "type": "object",
      "required": [
        "first_name",
        "last_name",
        "email"
      ],
      "properties": {
        "first_name": {
          "type": "string"
        },
        "last_name": {
          "type": "string"
        },
        "email": {
          "type": "string",
          "format": "email"
        },
        "phone": {
          "type": "string"
        }
      }
    },
    "house_rules_accepted": {
      "type": "boolean",
      "const": true
    },
    "special_requests": {
      "type": "string",
      "maxLength": 500,
      "description": "Shown to the host with the request"
    }
  }
}