{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tourradar/json-schema/tourradar-booking-fields-schema.json",
  "title": "BookingFields",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tourradar-operators-api-openapi.yml#/components/schemas/BookingFields",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "name": {
        "type": "string",
        "description": "Name of the field (must be used when creating bookings)."
      },
      "label": {
        "type": "string",
        "description": "Descriptive name of the field."
      },
      "group": {
        "type": "string",
        "description": "Category of the fields (can be used to group together similar fields)."
      },
      "type": {
        "type": "string",
        "description": "Type of data expected for this field.",
        "enum": [
          "string",
          "number",
          "email",
          "phone",
          "date"
        ]
      },
      "main_pax": {
        "type": "string",
        "description": "Defines if this field is mandatory for the lead passenger (first passenger in the booking).",
        "enum": [
          "mandatory",
          "optional",
          "mandatory_post_booking"
        ]
      },
      "additional_pax": {
        "type": "string",
        "description": "Defines if this field is mandatory for additional passengers.",
        "enum": [
          "mandatory",
          "optional",
          "mandatory_post_booking"
        ]
      }
    }
  }
}