{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "custom-field.json",
  "title": "Intralinks Custom Field",
  "description": "A custom field definition for an Intralinks workspace, allowing additional metadata to be attached to documents, folders, and groups.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier of the custom field."
    },
    "name": {
      "type": "string",
      "description": "Custom field name."
    },
    "type": {
      "type": "string",
      "enum": ["TEXT", "DATE", "SELECT"],
      "description": "Custom field data type."
    },
    "isRequired": {
      "type": "boolean",
      "description": "Whether the field is mandatory."
    },
    "options": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Available options for SELECT type fields."
    }
  },
  "required": ["name", "type"]
}
