Skip to content
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

Add ability to disable JsonAnySetter/JsonAnyGetter via mixin #1376

Closed
brentryan opened this issue Sep 17, 2016 · 1 comment
Closed

Add ability to disable JsonAnySetter/JsonAnyGetter via mixin #1376

brentryan opened this issue Sep 17, 2016 · 1 comment
Milestone

Comments

@brentryan
Copy link

Add the ability to create a mixin that contains something like this on a property to disable:

@JsonAnySetter(false)
@JsonAnyGetter(false)

See more details here:
https://groups.google.com/forum/#!topic/jackson-user/KtuvowkEJf0

@cowtowncoder
Copy link
Member

As per FasterXML/jackson-annotations#109 I added support for:

@JsonAnyGetter(enabled=false) // if omitted, defaults to `true`
@JsonAnySetter(enabled=false) // - "" -

use of which now allows disabling via mix-ins and sub-classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants