Replies: 1 comment 1 reply
-
This is done for security reasons. If you report the type like that, then an attacker would know they need to pass a long next time. |
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
-
Look at this scenario :
...
{ }
then I get a meaningful error message in HTTP 400 : "someLong cannot be null"{ someLong: null }
then same thing. I get a meaningful message{ someLong: "not a long" }
then I only get HTTP 400 but no meaningful message. I would expect something along the lines of "could not parse someLong".Is there a built-in mechanism of RestEasy that I'm missing?
Beta Was this translation helpful? Give feedback.
All reactions