smallrye-open-api
smallrye-open-api copied to clipboard
Need equivalent to io.swagger.v3.jaxrs2.ReaderListener
I am working on migrating my project to use Quarkus SmallRye OpenAPI from Swagger. Something we use currently in Swagger is the ReaderListener to customize the OpenAPI definitions. How can I do this with Quarkus SmallRye OpenAPI?
Maybe a filter? See https://download.eclipse.org/microprofile/microprofile-open-api-1.0/microprofile-openapi-spec.html#_oasfilter
An example https://github.com/phillip-kruger/openapi-example/blob/main/src/main/java/com/github/phillipkruger/openapi/extra/MyFilter.java
Let me know if that works for you
@mweber03 did you get a chance to look at the OASFilter as suggested? That should give you full control over the resulting model.
Closing for now, please re-open if the suggestion to use an OASFilter does not help.