fix part 2
This commit is contained in:
@@ -26,13 +26,14 @@ class ImageUploadResponse(BaseModel):
|
||||
mime_type: str
|
||||
width: int
|
||||
height: int
|
||||
metadata: dict[str, Any]
|
||||
metadata: dict[str, Any] = Field(..., alias="image_metadata")
|
||||
created_at: datetime
|
||||
|
||||
class Config:
|
||||
"""Pydantic config."""
|
||||
|
||||
from_attributes = True
|
||||
populate_by_name = True
|
||||
|
||||
|
||||
class ImageResponse(BaseModel):
|
||||
@@ -46,7 +47,7 @@ class ImageResponse(BaseModel):
|
||||
mime_type: str
|
||||
width: int
|
||||
height: int
|
||||
metadata: dict[str, Any]
|
||||
metadata: dict[str, Any] = Field(..., alias="image_metadata")
|
||||
created_at: datetime
|
||||
reference_count: int
|
||||
|
||||
@@ -54,6 +55,7 @@ class ImageResponse(BaseModel):
|
||||
"""Pydantic config."""
|
||||
|
||||
from_attributes = True
|
||||
populate_by_name = True
|
||||
|
||||
|
||||
class BoardImageCreate(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user