-
Notifications
You must be signed in to change notification settings - Fork 6
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
Annotation to ignore all properties except the ones specified #15
Comments
So, like this existing issue? FasterXML/jackson-databind#1296 If so, yes, I grok and like the idea. Was hoping to work on it for 2.9, but unfortunately seems unlikely there's time. |
Yes, exactly like that. I'm glad the proposal already exists. |
Ok thank you verifying. I agree it is a good idea. |
Hi, Is there any update on implementing the mentioned feature?? |
@Rahulkesharwani as per earlier notes issue is: FasterXML/jackson-databind#1296 and if there are updates, whoever works on issue should add notes to issue. I am not aware of any progress. |
I've been googling around and on SO but couldn't really find anything similar. Basically a lot of times I want something like
@JsonIgnoreAllPopertiesExcept({"this_one", "and_this_one"})
, so the opposite of@JsonIgnoreProperties
. In real world usage scenarios, more often than not it seems that I need to ignore almost all properties from the child entity except a few. If my child entity has 20 properties, I have to write 15 names in@JsonIgnoreProperties
but with this new annotation I could just specify the ones I want and all others should be ignored. Hopefully that makes sense.The text was updated successfully, but these errors were encountered: