Decodes list with primitvs (#1536)

This commit is contained in:
Michael Ramstein
2018-11-27 10:00:10 +01:00
committed by William Cheng
parent 4eae430cca
commit 247bd68880

View File

@@ -693,6 +693,8 @@ public class ElixirClientCodegen extends DefaultCodegen implements CodegenConfig
// Primitive return type, don't even try to decode
if (returnBaseType == null || (returnSimpleType && returnTypeIsPrimitive)) {
return "false";
} else if (isListContainer && languageSpecificPrimitives().contains(returnBaseType)) {
return "[]";
}
StringBuilder sb = new StringBuilder();
if (isListContainer) {