From b68fd89f5dfd1882e57d185c61a62abdf16114b5 Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Thu, 4 Sep 2025 10:43:08 +0900 Subject: [PATCH] =?UTF-8?q?Pydantic=20v2=20=ED=98=B8=ED=99=98=EC=84=B1=20?= =?UTF-8?q?=EC=88=98=EC=A0=95:=20regex=20->=20pattern=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/schemas/todo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/schemas/todo.py b/backend/src/schemas/todo.py index 3033fa2..01339cc 100644 --- a/backend/src/schemas/todo.py +++ b/backend/src/schemas/todo.py @@ -48,7 +48,7 @@ class TodoItemSchedule(BaseModel): class TodoItemUpdate(BaseModel): """할일 수정""" content: Optional[str] = Field(None, min_length=1, max_length=2000) - status: Optional[str] = Field(None, regex="^(draft|scheduled|active|completed|delayed)$") + status: Optional[str] = Field(None, pattern="^(draft|scheduled|active|completed|delayed)$") start_date: Optional[datetime] = None estimated_minutes: Optional[int] = Field(None, ge=1, le=120) delayed_until: Optional[datetime] = None