Support for Returning Response in Generated Code #973
mathurinhauville
started this conversation in
Ideas
Replies: 1 comment
-
@carlesarnal do you mind taking this one? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I’m using the quarkus-openapi-generator-server extension to generate code for my REST API based on an OpenAPI specification. I have a use case where I’d like the generated server methods to return jakarta.ws.rs.core.Response instead of strongly typed objects derived from the OpenAPI schema.
Currently, the generated code strictly uses the return types defined in the OpenAPI specification, such as specific DTOs or inline schema objects. While this works well in many cases, it limits flexibility when I want to encapsulate responses into a Response object.
Here are my questions:
Example:
Let me know if this is already supported or if additional context/examples would help clarify my use case.
Thank you for your work on this extension!
Beta Was this translation helpful? Give feedback.
All reactions