Skip to content

Commit 6ee2546

Browse files
Merge pull request #44 from Trinity-goorm/develop
hotfix: data type fix.
2 parents c69bd5b + 31cbae7 commit 6ee2546

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/schema/recommendation_schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class RecommendationItem(BaseModel):
2727
}
2828

2929
class UserData(BaseModel):
30-
user_id: str
30+
user_id: Annotated[int, Field(alias="userId")]
3131
# 선호 카테고리는 최소 1개, 최대 3개 (Pydantic v2 방식)
32-
preferred_categories: Annotated[List[str], Field(min_length=1, max_length=3)]
32+
preferred_categories: Annotated[List[str], Field(alias="preferredCategories", min_length=1, max_length=3)]
3333

3434
class RecommendationEvaluationResponse(BaseModel):
3535
metrics: Dict[str, Any]

0 commit comments

Comments
 (0)