Typespec: Fixes issue with formated primitivs (#1534)

This commit is contained in:
Michael Ramstein 2018-11-27 14:34:54 +01:00 committed by William Cheng
parent 247bd68880
commit d31fa4f7c4

View File

@ -654,6 +654,8 @@ public class ElixirClientCodegen extends DefaultCodegen implements CodegenConfig
sb.append(param.dataType);
} else if (param.isFile || param.isBinary) {
sb.append("String.t");
} else if (param.dataFormat != null) {
sb.append(param.dataType);
} else {
// <module>.Model.<type>.t
sb.append(moduleName);