{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/immutable/main/json-schema/immutable-username-update-request-schema.json",
  "title": "UsernameUpdateRequest",
  "description": "Request to update username",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/immutable-passport-profile-api-openapi.yml#/components/schemas/UsernameUpdateRequest",
  "type": "object",
  "required": [
    "username"
  ],
  "properties": {
    "username": {
      "type": "string",
      "description": "The new username",
      "minLength": 3,
      "maxLength": 18,
      "pattern": "^[a-zA-Z0-9]+$"
    }
  }
}