forked from loafle/openapi-generator-original
renamed variable
This commit is contained in:
parent
2f8a8c05e0
commit
3540c44e71
@ -378,9 +378,9 @@ public class GoClientCodegen extends DefaultCodegen implements CodegenConfig {
|
|||||||
// if the return type is not primitive, import encoding/json
|
// if the return type is not primitive, import encoding/json
|
||||||
for (CodegenOperation operation : operations) {
|
for (CodegenOperation operation : operations) {
|
||||||
if(operation.returnBaseType != null && needToImport(operation.returnBaseType)) {
|
if(operation.returnBaseType != null && needToImport(operation.returnBaseType)) {
|
||||||
Map<String, String> newImportMap2 = new HashMap<String, String>();
|
Map<String, String> customImport = new HashMap<String, String>();
|
||||||
newImportMap2.put("import", "encoding/json");
|
customImport.put("import", "encoding/json");
|
||||||
imports.add(newImportMap2);
|
imports.add(customImport);
|
||||||
break; //just need to import once
|
break; //just need to import once
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user