fix: better validation error messages (#3736)

This commit is contained in:
Vlad Stan
2026-01-21 14:28:57 +02:00
committed by GitHub
parent 5e79ca35ab
commit d2e8914835
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"]
)