{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/karbonhq/json-schema/karbonhq-custom-field-definition-schema.json",
  "title": "CustomFieldDefinition",
  "description": "The structure that defines a Custom Field in Karbon",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/karbonhq-custom-fields-api-openapi.yml#/components/schemas/CustomFieldDefinition",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "maxLength": 100
    },
    "Type": {
      "type": "string",
      "enum": [
        "Text",
        "Number",
        "Date",
        "Boolean",
        "Colleague",
        "ListSingleSelect",
        "ListMultipleSelect"
      ]
    },
    "IsVisibleToContacts": {
      "type": "boolean"
    },
    "IsVisibleToOrganizations": {
      "type": "boolean"
    },
    "ListOptions": {
      "descriptions": "A value or values assigned to the Custom Field, note that all values for all types are strings - this includes `number` and `boolean` types",
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 256
      }
    }
  }
}