{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/talend/json-schema/talend-custom-attribute-definition-schema.json",
  "title": "CustomAttributeDefinition",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/talend-attributes-api-openapi.yml#/components/schemas/CustomAttributeDefinition",
  "type": "object",
  "required": [
    "createdBy",
    "label",
    "mandatory",
    "type",
    "updatedAt",
    "updatedBy"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "UUID"
    },
    "label": {
      "type": "string",
      "description": "Label of the attribute"
    },
    "description": {
      "type": "string",
      "description": "Detailed description"
    },
    "type": {
      "type": "string",
      "description": "Type of the attribute",
      "enum": [
        "text",
        "enum"
      ]
    },
    "defaults": {
      "type": "array",
      "description": "Default value for the attribute",
      "items": {
        "type": "string"
      }
    },
    "mandatory": {
      "type": "boolean",
      "description": "Indicates if this attribute is mandatory"
    },
    "createdAt": {
      "type": "integer",
      "format": "int32",
      "description": "Creation timestamp of the attribute"
    },
    "updatedAt": {
      "type": "integer",
      "format": "int64",
      "description": "Last update timestamp of the attribute"
    },
    "createdBy": {
      "$ref": "#/$defs/Author"
    },
    "updatedBy": {
      "$ref": "#/$defs/Author"
    }
  },
  "$defs": {
    "Author": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "User identifier"
        },
        "userName": {
          "type": "string",
          "description": "Full name of the user"
        }
      }
    }
  }
}