FasterXML / jackson-annotations

Core annotations (annotations that only depend on jackson-core) for Jackson data processor
https://github.com/FasterXML/jackson
Apache License 2.0
1.03k stars 330 forks source link

Add `enabled` for `@JsonAnyGetter`, `@JsonAnySetter`, to allow disabling via mix-ins #109

Closed cowtowncoder closed 7 years ago

cowtowncoder commented 7 years ago

(for follow-up, see https://github.com/FasterXML/jackson-databind/issues/1376)

Currently there is no way to disable any-getter or any-setter designation; there should be. The easiest way seems to be by just adding a property; and although value might allow shortest way to designate disabling, choice of enabled is probably more readable in the end so let's go with that.