File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
modules/openapi-generator/src/main/resources/Java/libraries/resttemplate Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ public class {{classname}} extends BaseApi {
140140 { {/-last} }{ {/cookieParams} }{ {/hasCookieParams} }{ {#hasFormParams} }
141141
142142 { {#formParams} }if ({ {paramName} } != null)
143- localVarFormParams.{ {^collectionFormat } }add{ {/collectionFormat } }{ {#collectionFormat } }addAll{ {/collectionFormat } }("{ {baseName} }", { {#isFile} }{ {^collectionFormat} }{ {#useAbstractionForFiles} }{ {paramName} }{ {/useAbstractionForFiles} }{ {^useAbstractionForFiles} }new FileSystemResource({ {paramName} }){ {/useAbstractionForFiles} }{ {/collectionFormat} }{ {/isFile} }{ {#isFile} }{ {#collectionFormat} }{ {paramName} }.stream(){ {^useAbstractionForFiles} }.map(FileSystemResource::new){ {/useAbstractionForFiles} }.collect(Collectors.toList()){ {/collectionFormat} }{ {/isFile} }{ {^isFile} }{ {paramName} }{ {/isFile} });{ {^-last} }
143+ localVarFormParams.{ {^isArray } }add{ {/isArray } }{ {#isArray } }addAll{ {/isArray } }("{ {baseName} }", { {#isFile} }{ {^collectionFormat} }{ {#useAbstractionForFiles} }{ {paramName} }{ {/useAbstractionForFiles} }{ {^useAbstractionForFiles} }new FileSystemResource({ {paramName} }){ {/useAbstractionForFiles} }{ {/collectionFormat} }{ {/isFile} }{ {#isFile} }{ {#collectionFormat} }{ {paramName} }.stream(){ {^useAbstractionForFiles} }.map(FileSystemResource::new){ {/useAbstractionForFiles} }.collect(Collectors.toList()){ {/collectionFormat} }{ {/isFile} }{ {^isFile} }{ {paramName} }{ {/isFile} });{ {^-last} }
144144 { {/-last} }{ {/formParams} }{ {/hasFormParams} }
145145
146146 final String[] localVarAccepts = { {{#hasProduces} }
You can’t perform that action at this time.
0 commit comments