{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amigo/main/json-schema/amigo-src-routes-external-roles-create-request-schema.json",
  "title": "CreateRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amigo-external-roles-api-openapi.yml#/components/schemas/src__routes__external_roles__CreateRequest",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1,
      "pattern": "^[a-z][a-z0-9_]{0,63}$",
      "title": "Name"
    },
    "external_name": {
      "type": "string",
      "maxLength": 256,
      "minLength": 1,
      "title": "External Name"
    },
    "description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2048
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "name",
    "external_name"
  ]
}