forked from loafle/openapi-generator-original
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:
committed by
wing328
parent
91af8066cd
commit
6ade001663
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user