Skip to content

Commit 3a95cc4

Browse files
committed
🐛 bug hunting
1 parent 4ed2986 commit 3a95cc4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/schemas/collection.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class CollectionItemFeedback(BaseModel):
6060

6161

6262
class CollectionItemInfo(BaseModel):
63-
cover_image: AnyHttpUrl | None = None
63+
cover_image: Optional[ImageUrl] = None
6464
title: str | None = None
6565
author: str | None = None
6666

@@ -70,8 +70,10 @@ class CollectionItemInfo(BaseModel):
7070

7171

7272
class CollectionItemInfoCreateIn(CollectionItemInfo):
73-
cover_image: ImageUrl | None = None
74-
model_config = ConfigDict(str_max_length=(2**19) * 1.5, validate_assignment=True)
73+
cover_image: Optional[ImageUrl] = None
74+
model_config = ConfigDict(
75+
str_max_length=int((2**19) * 1.5), validate_assignment=True
76+
)
7577

7678

7779
class CoverImageUpdateIn(CollectionItemInfoCreateIn):

0 commit comments

Comments
 (0)