mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 03:18:53 +00:00
Merge pull request #3645 from guohuang/compile_issue2
[Go] fixing code gen not recognizing 'object' type issue
This commit is contained in:
commit
d93ef8531b
@ -106,6 +106,7 @@ public class GoClientCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
// the correct solution is to use []byte
|
||||
typeMapping.put("binary", "string");
|
||||
typeMapping.put("ByteArray", "string");
|
||||
typeMapping.put("object", "interface{}");
|
||||
|
||||
importMapping = new HashMap<String, String>();
|
||||
importMapping.put("time.Time", "time");
|
||||
|
Loading…
Reference in New Issue
Block a user