swagger-core icon indicating copy to clipboard operation
swagger-core copied to clipboard

Swagger does not respect Jackson @JsonIgnoreProperties annotation

Open duckladydinh opened this issue 7 years ago • 3 comments

When I used @JsonIgnoreProperties annotation to ignore some redundant properties from the super classes, it has completely no effect on Swagger. The consequence is the API document and the real Json objects have inconsistent structure. Does anyone know how we can solve this problem?

duckladydinh avatar Jun 18 '18 16:06 duckladydinh

yes ,I have same problem

guan25 avatar Aug 13 '18 07:08 guan25

This is partially addressed in #3649, please see comment in PR and related test about limitations.

See also #3442 for a concrete example, keeping ticket open until fully addressed

frantuma avatar Jul 23 '20 08:07 frantuma

Any update on this?

SushmitaGoswami avatar May 12 '23 12:05 SushmitaGoswami