-
Notifications
You must be signed in to change notification settings - Fork 117
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
jackson-module-parameter-names: @JsonPropertyName still required if @JsonDeserialize is used #178
Comments
Interesting. Sounds like a flaw. |
Can reproduce the issue; added a failing test. |
Ah. I think I know the root cause: existence of a few "well-known" annotation triggers equivalent of returning empty String for name for (de)serialization -- meaning "use default". But I think creator detection logic does not realize this (as it is abstracted behind |
Created FasterXML/jackson-databind#2932 -- unlikely to be resolved for 2.12, hope to address in 2.13. |
Was fixed in |
If ParameterNamesModule is registered, { "a": 1, "b": 1 } can be deserialized to an instance of:
but not to an instance of:
unless you declare the property name again:
The text was updated successfully, but these errors were encountered: