Use String for "binary" as a workaronud

This commit is contained in:
xhh
2016-01-20 10:34:36 +08:00
parent 9c580a2447
commit 3b5462c1e9
2 changed files with 4 additions and 4 deletions

View File

@@ -133,8 +133,8 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
typeMapping.put("double", "Number");
typeMapping.put("number", "Number");
typeMapping.put("DateTime", "Date");
// binary not supported in JavaScript client right now, using Object as a workaround
typeMapping.put("binary", "Object");
// binary not supported in JavaScript client right now, using String as a workaround
typeMapping.put("binary", "String");
importMapping.clear();
}