Make parameters unique in generated code

through a config option "ensureUniqueParams" which is false by default

Closes #1422
This commit is contained in:
xhh
2015-11-04 20:51:56 +08:00
parent 76cee8bc6b
commit 1a67f452e2
6 changed files with 63 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ public class {{classname}} {
{{/queryParams}}
{{#headerParams}}if ({{paramName}} != null)
{{localVariablePrefix}}headerParams.put("{{baseName}}", {{localVariablePrefix}}apiClient.parameterToString({{paramName}}));
{{localVariablePrefix}}headerParams.put("{{baseName}}", {{localVariablePrefix}}apiClient.parameterToString({{paramName}}));
{{/headerParams}}
{{#formParams}}if ({{paramName}} != null)