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
However I think there should be an extra check on the value, since it can be annotated with @JsonIgnore(false). This can happen for example when you want to Override a @JsonIgnore annotation from a parent class. (I tested this locally and it gives the expected result)
So instead of returning true immediately, I would continue if the value is false.
The text was updated successfully, but these errors were encountered:
madeleine-a
added a commit
to madeleine-a/swagger-core
that referenced
this issue
Jan 19, 2022
In ModelResolver there is a check for @JsonIgnore annotation, but the value is ignored:
swagger-core/modules/swagger-core/src/main/java/io/swagger/v3/core/jackson/ModelResolver.java
Lines 995 to 997 in 2f81363
However I think there should be an extra check on the value, since it can be annotated with @JsonIgnore(false). This can happen for example when you want to Override a @JsonIgnore annotation from a parent class. (I tested this locally and it gives the expected result)
So instead of returning true immediately, I would continue if the value is false.
The text was updated successfully, but these errors were encountered: