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

Swagger support for @JsonView #2595

Closed
prabusb opened this issue Dec 20, 2017 · 1 comment
Closed

Swagger support for @JsonView #2595

prabusb opened this issue Dec 20, 2017 · 1 comment

Comments

@prabusb
Copy link

prabusb commented Dec 20, 2017

Hi,
In my project, I heavily use jsonview to return different response for each endpoint for same resource.

For example - I have an resource called Student. In first end point I may return only 5 attributes and in second endpoint I may return additional 2 attributes.

When I try swagger, it generates the doc for whole object, not for the view.

I tried to google and not getting enough details whether swagger supports jsonview. Can you please let me know how to get it resolved?

@frantuma
Copy link
Member

Hi, atm JsonView is not supported in swagger; such support is however considered for future release as it is a quite requested features, as in #479 and #2079 (any PR in this area is welcome).
Closing as duplicate of #479 and #2079

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

2 participants