mirror of
https://github.com/wowlikon/LiB.git
synced 2026-03-21 23:53:38 +00:00
Исправление документации swagger и ошибок обновления данных
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user