forked from loafle/openapi-generator-original
Decodes list with primitvs (#1536)
This commit is contained in:
committed by
William Cheng
parent
4eae430cca
commit
247bd68880
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user