-
-
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
@JsonAnyGetter
should be allowed on a field
#1458
Comments
@JsonAnySetter
should be allowed on a field@JsonAnyGetter
should be allowed on a field
While not trivial to implement, this seems like something moderately challenging to implement -- but something users would like to see. |
Hi, I would like to take this issue. I already lookup up in the code and I think it should be done within the classes @JsonAnyGetter, BasicBeanDescription and POJOPropertiesCollector. The outgoing type of AnnotatedMember is already present and it should be simply extendable for fields. Best regards. |
@dominikrebhan Go for it! This would be a good improvement. I think you'll want to start with 2.12 branch (3.0 is too far out, |
I added the first pull requests. Could you please take a look at a first glance? |
PR looks good; added notes wrt cla, happy to merge! |
Was merged, will be in 2.12.0. |
(follow-up from FasterXML/jackson-annotations#107)
Would be nice to allow use of
@JsonAnyGetter
on fields too; javadocs already claim this is possible.So should add support for allowing that. Note that the counterpart,
@JsonAnySetter
does allow use on field already.The text was updated successfully, but these errors were encountered: