JavaJAXRSSpecServerCodegen ignores returnResponse options
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
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. https://github.com/swagger-api/swagger-codegen-generators/pull/1047
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.