{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/componecat-ai/json-schema/componecat-ai-create-kind-field-assignment-request-schema.json",
  "title": "CreateKindFieldAssignmentRequest",
  "description": "Create kind–field assignment request body.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/componecat-ai-openapi.yml#/components/schemas/CreateKindFieldAssignmentRequest",
  "required": [
    "kindId",
    "fieldId"
  ],
  "type": "object",
  "properties": {
    "kindId": {
      "type": "string",
      "description": "ID of the entity kind definition.",
      "format": "uuid"
    },
    "fieldId": {
      "type": "string",
      "description": "ID of the field definition to assign.",
      "format": "uuid"
    },
    "required": {
      "type": "boolean",
      "description": "Whether entities of the kind must supply a value for the field when created. Defaults to false.",
      "default": false
    },
    "displayOrder": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "description": "Position in the kind's field list; lower values come first. Defaults to 0.",
      "format": "int32",
      "default": 0
    },
    "category": {
      "type": [
        "null",
        "string"
      ],
      "description": "Grouping category for the field on this kind (max 250 characters)."
    }
  }
}