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
Trying to exclude some fields in a model, which is achieved by @JsonView through interfaces, which works well on the responses we want to exclude.
However, we found out that the output swagger still includes them.
So just wandering if @JsonView is supported & honored in the generated swagger spec as it seems to ignore these, showing everything in the model.
One workaround that we have right now though is the combination usage of modelSubstitue and apiModelPropertyAccessExclusion which doesn't really seems nice, having to create a custom class just for generating a swaggerspec, and will need to maintain the class since it is copied from a generated class.
The text was updated successfully, but these errors were encountered:
Hi,
Trying to exclude some fields in a model, which is achieved by
@JsonView
through interfaces, which works well on the responses we want to exclude.However, we found out that the output swagger still includes them.
So just wandering if
@JsonView
is supported & honored in the generated swagger spec as it seems to ignore these, showing everything in the model.One workaround that we have right now though is the combination usage of
modelSubstitue
andapiModelPropertyAccessExclusion
which doesn't really seems nice, having to create a custom class just for generating a swaggerspec, and will need to maintain the class since it is copied from a generated class.The text was updated successfully, but these errors were encountered: