Regard bare "object" type as Object, add comments

The handling of base "object" type (without definions of
"additionalProperties") is similar to Java generator now.
This commit is contained in:
xhh
2015-06-15 12:49:17 +08:00
parent 80616b4c2b
commit e9c1dd7842
3 changed files with 35 additions and 21 deletions

View File

@@ -62,7 +62,7 @@ public class RubyClientCodegen extends DefaultCodegen implements CodegenConfig {
typeMapping.put("array", "Array");
typeMapping.put("List", "Array");
typeMapping.put("map", "Hash");
typeMapping.put("object", "Hash");
typeMapping.put("object", "Object");
String baseFolder = "lib" + File.separatorChar + gemName;
String swaggerFolder = baseFolder + File.separatorChar + "swagger";