-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
FAIL_ON_NULL_FOR_PRIMITIVES
failure does not indicate field name in exception message
#2101
Comments
Thank you for reporting the issue: it does look like a bug. |
Actually, I was wrong: it is not a bug -- |
…imately determined there is no bug)
Can you please than add a new property which will hold the name? It will be really useful when to send a response to client, and indicate what fields has errors. |
@raderio Actually, come to think of it bit more, I wonder if I was wrong. Reference mentions "field" or "key", in Java context, and not in input source. I'll have to think bit more about this after all, since that being the case, it is not unreasonable it would be populated if there is sufficient information to do so. |
Thanks. |
We have a similar problem. It would be great to have the same behavior with fields of different types. |
FAIL_ON_NULL_FOR_PRIMITIVES
failure does not indicate field name in exception message
@neetkee Agreed. At this point it would be necessary to find someone with time to work on this, however. |
I also encountered this issue and wanted to report this. I have a potential fix ready and will create a PR soon |
…when FAIL_ON_NULL_FOR_PRIMITIVES is enabled FasterXML#2101
…when FAIL_ON_NULL_FOR_PRIMITIVES is enabled #2101
shows
field: num
but missing field in json
shows nothing
Please add filed name and in this case.
The text was updated successfully, but these errors were encountered: