Исправление документации 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
@@ -25,7 +25,7 @@ class AuthorCreate(AuthorBase):
class AuthorUpdate(SQLModel):
"""Модель автора для обновления"""
name: str | None = Field(None, description="Псевдоним")
name: str | None = Field(None, description="Псевдоним", schema_extra={"examples": [None]})
class AuthorRead(AuthorBase):