microprofile-extensions / openapi-ext

Some extensions for MicroProfile OpenAPI
Apache License 2.0
22 stars 13 forks source link

Openapi UI not discovering schemas #35

Closed pak3nuh closed 3 years ago

pak3nuh commented 3 years ago

Hi,

I've been trying to use the openapi-ui project but it doesn't seem to discover schemas that are defined by Microprofile Openapi annotations. The extension picks up request parameters and response types only if they are in the method signature. I need to model several responses with different status codes, media types and schemas.

I don't know if this was a design decision, but it is crucial to me to specify the complete API, including status codes, schemas, examples, etc.

I can reproduce the issue by following the example in the MP OpenApi example. The server I'm using is Payara on MP 3.2.

Thanks

pak3nuh commented 3 years ago

Actually, this seems like a payara problem. The exact same setup works with Quarkus server. Will close the issue.