Issue 4759: Import complex type for body parameters (#4775)

This commit is contained in:
Jeff Haynes 2017-03-13 02:35:21 -05:00 committed by wing328
parent 79e21d98c6
commit ba380c9dda

View File

@ -2480,6 +2480,9 @@ public class DefaultCodegen {
p.isPrimitiveType = cp.isPrimitiveType;
p.isBinary = isDataTypeBinary(cp.datatype);
p.isFile = isDataTypeFile(cp.datatype);
if (cp.complexType != null) {
imports.add(cp.complexType);
}
}
// set boolean flag (e.g. isString)