fix: better validation error messages (#3736)

This commit is contained in:
Vlad Stan
2026-02-25 07:53:41 +01:00
committed by dni ⚡
parent f0f9e41f99
commit 67bb86c1ce
5 changed files with 35 additions and 16 deletions
+2 -1
View File
@@ -2044,5 +2044,6 @@ async def test_api_update_user_labels(http_client: AsyncClient):
assert response.status_code == 400
data = response.json()
assert (
"""string does not match regex "([A-Za-z0-9 ._-]{1,100}$)""" in data["detail"]
"""string does not match regex "([A-Za-z0-9 ._-]{1,100}$)"""
in data["detail"][0]["msg"]
)