From be0233c609e6b3355567fe7909bbb6b5e0c08023 Mon Sep 17 00:00:00 2001 From: Guo Huang Date: Thu, 25 Aug 2016 21:44:57 -0700 Subject: [PATCH] [Go] fixing code gen not recognizing 'object' type issue --- .../main/java/io/swagger/codegen/languages/GoClientCodegen.java | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/GoClientCodegen.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/GoClientCodegen.java index 93eecd03251..3a2c0435b49 100644 --- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/GoClientCodegen.java +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/GoClientCodegen.java @@ -100,6 +100,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(); importMapping.put("time.Time", "time");