smallrye-open-api icon indicating copy to clipboard operation
smallrye-open-api copied to clipboard

Need equivalent to io.swagger.v3.jaxrs2.ReaderListener

Open mikethecalamity opened this issue 3 years ago • 2 comments
trafficstars

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?

mikethecalamity avatar Aug 20 '22 18:08 mikethecalamity

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

phillip-kruger avatar Aug 20 '22 22:08 phillip-kruger

@mweber03 did you get a chance to look at the OASFilter as suggested? That should give you full control over the resulting model.

MikeEdgar avatar Aug 26 '22 19:08 MikeEdgar

Closing for now, please re-open if the suggestion to use an OASFilter does not help.

MikeEdgar avatar Sep 06 '22 22:09 MikeEdgar