You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to hide some properties from my classes combining the AlternateTypeRule and @JsonIgnoreProperties (from Jackson), but the result is not as expected. The workaround is to use @JsonIgnore at property level. I'm suspecting that the type level annotations are being ignored, because I tested @JsonIgnoreType and didn't work.
Example
It was expected that the rule below should hide the password property, but it is not happening.
@italobb@JsonIgnoreProperties isn't supported for a few of reasons the main reason being that currently the models are a union of serializable and de-serializable properties (depending on how the model is being used). To be specific when a model is used for request and response, the properties are a union of the two.
Given that there is no way to separate the request and response models currently, its not super useful supporting this until we solve #807.
I'm trying to hide some properties from my classes combining the
AlternateTypeRule
and@JsonIgnoreProperties
(from Jackson), but the result is not as expected. The workaround is to use@JsonIgnore
at property level. I'm suspecting that the type level annotations are being ignored, because I tested@JsonIgnoreType
and didn't work.Example
It was expected that the
rule
below should hide thepassword
property, but it is not happening.Workaround
Using an annotation at property level... it works!
The text was updated successfully, but these errors were encountered: