How to tell openapi generator to use the method return type when using @APIResponse? #47678
Unanswered
matevskial
asked this question in
Q&A
Replies: 2 comments 10 replies
-
/cc @EricWittmann (openapi), @MikeEdgar (openapi), @phillip-kruger (openapi) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Do you get the expected response schema if |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Suppose I have a resource like:
With above code, the generated openapi schema loses information about the return type. If I use
@Content
and@Schema
as followsthen I lose the information about
SomeDto
in the openapi schema.IS there similar option like https://docs.swagger.io/swagger-core/v2.2.3/apidocs/io/swagger/v3/oas/annotations/responses/ApiResponse.html#useReturnTypeSchema--
Beta Was this translation helpful? Give feedback.
All reactions