Исправление документации swagger и ошибок обновления данных

This commit is contained in:
2026-02-25 00:12:09 +03:00
parent e8e3310afa
commit 8e10af0bfd
11 changed files with 39 additions and 16 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ class UserUpdateByAdmin(UserUpdate):
"""Обновление пользователя администратором"""
is_active: bool = Field(True, description="Не является ли заблокированным")
roles: list[str] | None = Field(None, description="Роли")
roles: list[str] | None = Field(None, description="Роли", schema_extra={"examples": [None]})
class LoginResponse(SQLModel):