#3690 adding RequestURL, Method, Operation and Payload fields to APIResponse

This commit is contained in:
Neil O'Toole
2016-09-02 06:49:39 -06:00
parent 7a4a430c43
commit 8183d96088
55 changed files with 1686 additions and 91 deletions

View File

@@ -414,11 +414,10 @@ public class GoClientCodegen extends DefaultCodegen implements CodegenConfig {
}
}
// this will only import "strings" "fmt" if there are items in pathParams
// this will only import "fmt" if there are items in pathParams
for (CodegenOperation operation : operations) {
if(operation.pathParams != null && operation.pathParams.size() > 0) {
imports.add(createMapping("import", "fmt"));
imports.add(createMapping("import", "strings"));
break; //just need to import once
}
}