map bytearray to string in ts

This commit is contained in:
wing328
2016-04-11 16:39:13 +08:00
parent b66540e12c
commit 6c7efd502b
2 changed files with 112 additions and 67 deletions

View File

@@ -59,6 +59,7 @@ public abstract class AbstractTypeScriptClientCodegen extends DefaultCodegen imp
//TODO binary should be mapped to byte array
// mapped to String as a workaround
typeMapping.put("binary", "string");
typeMapping.put("ByteArray", "string");
cliOptions.add(new CliOption(CodegenConstants.MODEL_PROPERTY_NAMING, CodegenConstants.MODEL_PROPERTY_NAMING_DESC).defaultValue("camelCase"));