We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ed2986 commit 3a95cc4Copy full SHA for 3a95cc4
app/schemas/collection.py
@@ -60,7 +60,7 @@ class CollectionItemFeedback(BaseModel):
60
61
62
class CollectionItemInfo(BaseModel):
63
- cover_image: AnyHttpUrl | None = None
+ cover_image: Optional[ImageUrl] = None
64
title: str | None = None
65
author: str | None = None
66
@@ -70,8 +70,10 @@ class CollectionItemInfo(BaseModel):
70
71
72
class CollectionItemInfoCreateIn(CollectionItemInfo):
73
- cover_image: ImageUrl | None = None
74
- model_config = ConfigDict(str_max_length=(2**19) * 1.5, validate_assignment=True)
+ model_config = ConfigDict(
75
+ str_max_length=int((2**19) * 1.5), validate_assignment=True
76
+ )
77
78
79
class CoverImageUpdateIn(CollectionItemInfoCreateIn):
0 commit comments