Исправление документации 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 GenreCreate(GenreBase):
class GenreUpdate(SQLModel):
"""Модель жанра для обновления"""
name: str | None = Field(None, description="Название")
name: str | None = Field(None, description="Название", schema_extra={"examples": [None]})
class GenreRead(GenreBase):