Fix spring generated controller annotations only generating for first return type (#5399)

Fixes the spring java code generator so that the ApiResponse fields are populated correctly
on the controller.

Related to #4693
This commit is contained in:
Jonathan Leitschuh
2017-05-31 05:27:32 -04:00
committed by wing328
parent bee999056a
commit d6f2424152
26 changed files with 163 additions and 129 deletions

View File

@@ -39,7 +39,7 @@ public interface {{classname}} {
{{/hasMore}}{{/authMethods}}
}{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}",{{/vendorExtensions.x-tags}} })
@ApiResponses(value = { {{#responses}}
@ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{returnType}}}.class){{#hasMore}},{{/hasMore}}{{/responses}} })
@ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{dataType}}}.class{{#containerType}}, responseContainer = "{{{containerType}}}"{{/containerType}}){{#hasMore}},{{/hasMore}}{{/responses}} })
{{#implicitHeaders}}@ApiImplicitParams({
{{#headerParams}}{{>implicitHeader}}{{/headerParams}}
}){{/implicitHeaders}}