-
Notifications
You must be signed in to change notification settings - Fork 89
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 annotations #1008
Comments
SmallRye OpenAPI is primarily a microprofile open API implementation. We do not support (yet) swagger annotations, although there is an open issue to add support for it. Once that is done we can look at supporting this |
|
@phillip-kruger Is there a chance that this feature will be implemented in the near future? JsonView support is very important for us, because we must generate different OpenAPI specifications from the same Rest-Api. |
@maliffi , @mschorsch - based on the example in this issue, would you expect the
|
Yes. It would be nice if i could choose (config flag?) which JsonView(s) should be generated. |
Yes, this is what I would expect to see in the |
@MikeEdgar Do you know when this feature will be available? This issue prevents us from using smallrye-openapi in quarkus and is a blocker for our migration to resteasy-reactive in one of our projects. |
@mschorsch I haven't had a chance to think about a solution for this one yet, but I hope to find some time soon. |
Don't want to put pressure on anybody but this feature will also be nice for our current developments. Already thank you for your all work! |
I'm in the same situation as @mschorsch, this is blocking the use of |
Same issue here and same situation @MikeEdgar this is blocking for us to use quarkus-smallrye-openapi |
Closes smallrye#1008 Signed-off-by: Michael Edgar <michael@xlate.io>
Closes smallrye#1008 Signed-off-by: Michael Edgar <michael@xlate.io>
Closes smallrye#1008 Signed-off-by: Michael Edgar <michael@xlate.io>
Hello,
I've seen that Swagger already support the usage of anootation
@JsonView
in order to filter input and output of a model class in RequestBody or ResponseBody (see swagger-api/swagger-core#479 fixed with swagger-api/swagger-core#2681 since 2018), but If I try using this annotation in my controller in order to selectively hide some fields of my model class from input or output in the swagger-ui, they are anyway displayed.This is my example
My model class is:
Event the field
id
is marked with a different JsonView actually is showed in swagger-ui for the request in the API.What am I doing wrong?
The text was updated successfully, but these errors were encountered: