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

@@ -11,7 +11,7 @@ import java.io.File;
import java.util.*;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-10-30T16:36:47.681+08:00")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-11-04T19:58:40.953+08:00")
public class PetApi {
private ApiClient apiClient;
@@ -367,7 +367,7 @@ public class PetApi {
if (apiKey != null)
headerParams.put("api_key", apiClient.parameterToString(apiKey));
headerParams.put("api_key", apiClient.parameterToString(apiKey));