{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/comp-ai/json-schema/comp-ai-create-role-dto-schema.json",
  "title": "CreateRoleDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/comp-ai-roles-api-openapi.yml#/components/schemas/CreateRoleDto",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the custom role",
      "minLength": 2,
      "maxLength": 50
    },
    "permissions": {
      "type": "object",
      "description": "Permissions for the role. Keys are resource names, values are arrays of allowed actions."
    },
    "obligations": {
      "type": "object",
      "description": "Obligations for the role. Boolean flags for requirements like compliance."
    }
  },
  "required": [
    "name",
    "permissions"
  ]
}