CodegenResponse.isListContainer is false for array types. (#4400)

CodegenResponse's isListContainer property is always false for "array" types. Don't know where the check for "list" comes from but in CodegenOperation, there's a check for "list" and "array".
No mustache file makes use of isListContainer inside responses yet, so should not change any existing behavior.
This commit is contained in:
Christoph Keller
2016-12-16 05:08:24 +01:00
committed by wing328
parent 91af8066cd
commit 6ade001663

View File

@@ -2208,7 +2208,7 @@ public class DefaultCodegen {
r.simpleType = false;
r.containerType = cm.containerType;
r.isMapContainer = "map".equals(cm.containerType);
r.isListContainer = "list".equals(cm.containerType);
r.isListContainer = "list".equalsIgnoreCase(cm.containerType) || "array".equalsIgnoreCase(cm.containerType);
} else {
r.simpleType = true;
}