Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is @JsonView supported and honored in generated swagger? #27

Open
bluecapz opened this issue Oct 21, 2019 · 0 comments
Open

Is @JsonView supported and honored in generated swagger? #27

bluecapz opened this issue Oct 21, 2019 · 0 comments

Comments

@bluecapz
Copy link

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 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant