{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/karbonhq/json-schema/karbonhq-custom-field-values-schema.json",
  "title": "CustomFieldValues",
  "description": "The set custom fields for a contact or organization and the associated values and options",
  "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/CustomFieldValues",
  "type": "object",
  "properties": {
    "EntityKey": {
      "type": "string"
    },
    "CustomFieldValues": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CustomFieldValue"
      }
    }
  },
  "$defs": {
    "CustomFieldValue": {
      "type": "object",
      "description": "A collection of Custom Fields",
      "properties": {
        "Key": {
          "type": "string"
        },
        "Name": {
          "type": "string",
          "maxLength": 100
        },
        "Type": {
          "type": "string",
          "enum": [
            "Text",
            "Number",
            "Date",
            "Boolean",
            "Colleague",
            "ListSingleSelect",
            "ListMultipleSelect"
          ]
        },
        "Value": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 256
          }
        }
      }
    }
  }
}