-
-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Custom .Error
does not work on schemas other than @Required
#2696
Comments
@ktalebian thanks a lot for the issue. I'll try to that asap ;) |
4 tasks
Romakita
added a commit
that referenced
this issue
May 8, 2024
Romakita
added a commit
that referenced
this issue
May 8, 2024
Romakita
added a commit
that referenced
this issue
May 27, 2024
🎉 This issue has been resolved in version 7.70.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Here is a request object:
And the controller
I expect to get a custom error message when I make
curl localhost:8083/body -XPOST -H "Content-Type: application/json" -d '{"title":"short"}'
but still get the generic message:I tried a few different decorators. It looks like only the
@Required
decorator works.To Reproduce
npm i
npm start
curl localhost:8083/body -XPOST -H "Content-Type: application/json" -d '{"prop1":"asd"}' | jq .
Expected behavior
Expected to see
Title must be at least 10 characters long
message.Code snippets
No response
Repository URL example
https://github.com/ktalebian/tsed-bug
OS
macOS
Node version
Node 20
Library version
v7.*
Additional context
No response
The text was updated successfully, but these errors were encountered: