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
Currently the OpenAPI generated where @JsonIgnoreProperties removes one or more fields is to generate an inline custom object instead of referencing via $ref the model where @JsonIgnoreProperties was not used, and technically this is correct as the real model actually is a variant.
However this bloats our OpenAPI file size and in our case users really don't need/want the custom model generated inline. Rather they want it to ignore the @JsonIgnoreProperties and just reference the normal model via $ref. In our cases its perfectly fine that the model will not have any data for the field(s) excluded with @JsonIgnoreProperties.
So could there be an optional flag to ignore annotations like @JsonIgnoreProperties?
Thanks,
-David
The text was updated successfully, but these errors were encountered:
Currently the OpenAPI generated where @JsonIgnoreProperties removes one or more fields is to generate an inline custom object instead of referencing via $ref the model where @JsonIgnoreProperties was not used, and technically this is correct as the real model actually is a variant.
However this bloats our OpenAPI file size and in our case users really don't need/want the custom model generated inline. Rather they want it to ignore the @JsonIgnoreProperties and just reference the normal model via $ref. In our cases its perfectly fine that the model will not have any data for the field(s) excluded with @JsonIgnoreProperties.
So could there be an optional flag to ignore annotations like @JsonIgnoreProperties?
Thanks,
-David
The text was updated successfully, but these errors were encountered: