Specifying the implementation schema #2197
-
Hello. I have a javax.ws.rs POST API which return a javax. ws. rs. core.Response. For different reasons I cannot change it to return a concrete model class, but I do want the openapi spec to be generated with the correct model class. How can I achieve this?
Are these annotations supported? If not, what else can I try? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@irinaalbu89 you're second example that uses |
Beta Was this translation helpful? Give feedback.
-
Hello @MikeEdgar . The method looks like this:
|
Beta Was this translation helpful? Give feedback.
Can you confirm the package of the
@ApiResponse
annotation? I question it because of the capitalization -Api
versusAPI
in the annotation we support.If you are using
io.swagger.v3.oas.annotations.responses.ApiResponse
, please switch toorg.eclipse.microprofile.openapi.annotations.responses.APIResponse
.