-
Notifications
You must be signed in to change notification settings - Fork 96
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
Add support for @JsonView #797
Comments
Have you tried specific names for the different schemas? It might be you are hitting the problem documented in https://micronaut-projects.github.io/micronaut-openapi/latest/guide/#schemasNaming
|
@kevin-wise Just did a bit of testing. I don't believe that is the issue I am seeing. I would also expect there be some reference to JsonView within this repo, but there doesn't appear to be. My current workaround is to define a different class based on my view and supply that as the schema implementation class. |
@daltonconley I understand what you're talking about, but it would be very nice if you create a repository with an example of what you want to see so that I can immediately test JsonView support |
Feature description
It appears there is no support for
@JsonView
annotation. This was added to swagger-core in swagger-api/swagger-core#2662I'd like to be able to exclude certain fields from the response body schema based on the
@JsonView
configuration but they get added to the schema regardless of the annotation now so both of my responses with the same object, but different views have the exact same schema.The text was updated successfully, but these errors were encountered: