modify esmerald ValidationErrorException in msgspec #385
Unanswered
saurabhgharatpara
asked this question in
Q&A
Replies: 2 comments 1 reply
-
@saurabhgharatpara thank you for the message. Lets us analyse this and see how we can help you. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@saurabhgharatpara have you tried to use the newest https://esmerald.dymmond.com/exceptions/#validatorerror ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Whenever msgspec exception happens esmerald.exceptions.ValidationErrorException is raised along with response for e.g
{
"message": "Validation failed for http://127.0.0.1:8000/admin/pets with method POST.",
"extra": {
"extra": [
{
"name": "Expected
str
, gotint
"}
]
}
}
basically i need response in this format
{
"message": "Validation failed for http://127.0.0.1:8000/admin/lob with method POST.",
}
what can we do ?
Beta Was this translation helpful? Give feedback.
All reactions