{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hostfully/json-schema/hostfully-custom-data-field-adding-api3-dto-schema.json",
  "title": "CustomDataFieldAddingApi3Dto",
  "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/CustomDataFieldAddingApi3Dto",
  "required": [
    "agencyUid",
    "name",
    "type"
  ],
  "type": "object",
  "properties": {
    "agencyUid": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "TEXT",
        "LONG_TEXT",
        "SINGLE_SELECT"
      ]
    },
    "name": {
      "maxLength": 255,
      "minLength": 0,
      "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"
      ]
    }
  }
}