Changed it back to anilist_id so I don't have to rebuild the app :))
Generate openapi.json / generate-docs (push) Successful in 34s

This commit is contained in:
florian committed 2026-11-28 18:55:23 +01:00
1 parent 2b3faa2b26
commit ac016289ed
1 file changed
+5 -4
+5 -4
View File
@@ -8,13 +8,13 @@ class AnimeCreate(DocumentedModel):
"""Request to subscribe to an anime. """Request to subscribe to an anime.
Attributes: Attributes:
seadex_id: Id of the anime on SeaDex. SeaDex mirrors the AniList ids, anilist_id: Id of the anime on SeaDex. SeaDex mirrors the AniList ids,
so this is also the anime's AniList id. Must be positive. so this is also the anime's AniList id. Must be positive.
custom_name: Name the subscriber wants to see in the notifications custom_name: Name the subscriber wants to see in the notifications
for this anime, at most 255 characters. If it is not set, the for this anime, at most 255 characters. If it is not set, the
name stored from AniList is used. Blank input becomes None. name stored from AniList is used. Blank input becomes None.
""" """
seadex_id: int = Field(gt=0) anilist_id: int = Field(gt=0)
custom_name: str | None = Field(default=None, max_length=255) custom_name: str | None = Field(default=None, max_length=255)
@field_validator("custom_name", mode="before") @field_validator("custom_name", mode="before")
@@ -41,9 +41,10 @@ class AnimeRemove(DocumentedModel):
"""Request to unsubscribe from an anime. """Request to unsubscribe from an anime.
Attributes: Attributes:
seadex_id: Id of the anime on SeaDex, which is also its AniList id. anilist_id: Id of the anime on SeaDex. SeaDex mirrors the AniList ids,
so this is also the anime's AniList id. Must be positive.
""" """
seadex_id: int anilist_id: int = Field(gt=0)
class AnimeEntry(DocumentedModel): class AnimeEntry(DocumentedModel):
"""A subscribed anime, as returned to the subscriber. """A subscribed anime, as returned to the subscriber.