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
{{ message }}
This repository has been archived by the owner on Nov 11, 2017. It is now read-only.
We often define a single structure but return subsets of its fields from different JAX-RS resource methods by annotating the methods with @JSONVIEW. (FYI, we're actually using Dropwizard)
There is a workaround implemented in the carmapublic fork allowing you to override the type for documentation puposes. See #63. In our project we have extended it to support interfaces too, as we are using Interfaces for jsonviews to leverage multiple inheritance.
@cviebig ive just committed support for json view to https://github.com/Carma-Public/swagger-jaxrs-doclet ive added a test fixture for it too that uses interfaces and classes for the view classes based on the Person example in the original jackson ticket. let me know if its ok for you.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We often define a single structure but return subsets of its fields from different JAX-RS resource methods by annotating the methods with @JSONVIEW. (FYI, we're actually using Dropwizard)
e.g. http://jira.codehaus.org/browse/JACKSON-578
Would it be possible for the generated swagger documentation to only include those fields which are included in the specified JsonView?
The text was updated successfully, but these errors were encountered: