Skip to content

Commit

Permalink
Remove maxlen annotated type for create and update robot requests (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
Winston-Hsiao authored Nov 18, 2024
1 parent bb7b7a2 commit f6fc6ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions store/app/routers/robots.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@

class CreateRobotRequest(BaseModel):
listing_id: str
name: Annotated[str, MaxLen(32)]
description: Annotated[str, MaxLen(2048)] | None = None
name: str
description: str | None = None
order_id: str | None = None


class UpdateRobotRequest(BaseModel):
name: Annotated[str, MaxLen(32)] | None = None
description: Annotated[str, MaxLen(2048)] | None = None
name: str | None = None
description: str | None = None
order_id: str | None = None


Expand Down

0 comments on commit f6fc6ec

Please sign in to comment.