From f6fc6ec451d54971e9bc333f278f587db4db7ebe Mon Sep 17 00:00:00 2001 From: Winston Hsiao <96440583+Winston-Hsiao@users.noreply.github.com> Date: Mon, 18 Nov 2024 15:44:32 -0800 Subject: [PATCH] Remove maxlen annotated type for create and update robot requests (#626) --- store/app/routers/robots.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/store/app/routers/robots.py b/store/app/routers/robots.py index 15852bcc..b8eb23dd 100644 --- a/store/app/routers/robots.py +++ b/store/app/routers/robots.py @@ -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