{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hostfully/json-schema/hostfully-custom-data-v32-response-wrapper-schema.json",
  "title": "CustomDataV32ResponseWrapper",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hostfully-custom-data-fields-api-openapi.yml#/components/schemas/CustomDataV32ResponseWrapper",
  "type": "object",
  "properties": {
    "customDataFields": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CustomDataFieldApi3Dto"
      }
    },
    "_metadata": {
      "$ref": "#/$defs/Api3ResponseMetadata"
    },
    "_paging": {
      "$ref": "#/$defs/Api3ResponsePaging"
    }
  },
  "$defs": {
    "Api3ResponseMetadata": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer",
          "format": "int32"
        },
        "totalCount": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "Api3ResponsePaging": {
      "type": "object",
      "properties": {
        "_limit": {
          "type": "integer",
          "format": "int32"
        },
        "_nextCursor": {
          "type": "string"
        }
      }
    },
    "CustomDataFieldApi3Dto": {
      "type": "object",
      "properties": {
        "agencyUid": {
          "type": "string"
        },
        "uid": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "TEXT",
            "LONG_TEXT",
            "SINGLE_SELECT"
          ]
        },
        "name": {
          "type": "string"
        },
        "variable": {
          "type": "string"
        },
        "index": {
          "type": "integer",
          "format": "int32"
        },
        "minAgeToShow": {
          "type": "integer",
          "format": "int32"
        },
        "subType": {
          "type": "string",
          "enum": [
            "PRIMARY_GUEST_INFORMATION",
            "OTHER_GUEST_INFORMATION",
            "ADDITIONAL_GUEST_INFORMATION",
            "ARRIVAL_INFORMATION",
            "OTHER"
          ]
        },
        "usage": {
          "type": "string",
          "enum": [
            "CUSTOM_VARIABLES",
            "PRE_ARRIVAL_FORM",
            "OTHER"
          ]
        },
        "isOptional": {
          "type": "boolean"
        },
        "isActive": {
          "type": "boolean"
        },
        "options": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CustomDataFieldOptionDto"
          }
        }
      }
    },
    "CustomDataFieldOptionDto": {
      "type": "object",
      "properties": {
        "uid": {
          "type": "string"
        },
        "optionText": {
          "type": "string"
        },
        "optionValue": {
          "type": "string"
        },
        "sortOrder": {
          "type": "integer",
          "format": "int32"
        },
        "active": {
          "type": "boolean"
        }
      }
    }
  }
}