Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaJAXRSSpecServerCodegen ignores returnResponse options #775

Open
RaphC opened this issue Oct 13, 2020 · 2 comments · May be fixed by #812
Open

JavaJAXRSSpecServerCodegen ignores returnResponse options #775

RaphC opened this issue Oct 13, 2020 · 2 comments · May be fixed by #812

Comments

@RaphC
Copy link

RaphC commented Oct 13, 2020

Hi,

the generator JavaJAXRSSpecServerCodegen uses a template apiInterface.mustache which allow to use Jaxrs Response as a return type instead of the generated ones by setting the returnResponse parameter when combined with option interfaceOnly :

{{#returnResponse}}Response{{/returnResponse}}{{^returnResponse}}{{>returnTypeInterface}}{{/returnResponse}}

but it seems this options is never mark as a config options. Is it possible to supporte returnReponse as a config options ?

Thanks

@mcassidygamma
Copy link

I stumbled across this too. In my scenario though, I wanted any method which would return void to return a Response instead. I've created a PR which will actually allow for returnResponse to be set, and a second property to returnResponseOverVoid as well. #1047

@HEPBO3AH
Copy link

HEPBO3AH commented May 18, 2024

Did you figure out a workaround? The maven plugin is not taking returnResponse in configOptions.

Edit: My bad.. I'm using a version 3 which doesn't support that parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants