{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/UserSummary",
  "title": "UserSummary",
  "type": "object",
  "description": "Abbreviated user object returned within authentication responses",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64",
      "description": "Unique numeric identifier of the user"
    },
    "username": {
      "type": "string",
      "description": "The user's login username"
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "The user's email address"
    },
    "roles": {
      "type": "array",
      "description": "Roles assigned to the user",
      "items": {
        "$ref": "#/components/schemas/RoleRef"
      }
    }
  }
}