From ea6c957cc92feccae5d4273d2bb81831aaa8fae7 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Tue, 28 May 2024 18:28:59 +0200 Subject: [PATCH] change(api): tags creation allow escaped cahracters for name --- api/schemas/schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/schemas/schemas.py b/api/schemas/schemas.py index 5851aed06..27c5228a8 100644 --- a/api/schemas/schemas.py +++ b/api/schemas/schemas.py @@ -1602,7 +1602,7 @@ class ModuleStatus(BaseModel): class TagUpdate(BaseModel): - name: str = Field(..., min_length=1, max_length=100, pattern='^[a-zA-Z0-9][a-zA-Z0-9_ -]+$') + name: str = Field(..., min_length=1, max_length=100, pattern='^[a-zA-Z0-9\" -]*$') class TagCreate(TagUpdate):