forked from loafle/openapi-generator-original
Issue 4759: Import complex type for body parameters (#4775)
This commit is contained in:
parent
79e21d98c6
commit
ba380c9dda
@ -2480,6 +2480,9 @@ public class DefaultCodegen {
|
|||||||
p.isPrimitiveType = cp.isPrimitiveType;
|
p.isPrimitiveType = cp.isPrimitiveType;
|
||||||
p.isBinary = isDataTypeBinary(cp.datatype);
|
p.isBinary = isDataTypeBinary(cp.datatype);
|
||||||
p.isFile = isDataTypeFile(cp.datatype);
|
p.isFile = isDataTypeFile(cp.datatype);
|
||||||
|
if (cp.complexType != null) {
|
||||||
|
imports.add(cp.complexType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// set boolean flag (e.g. isString)
|
// set boolean flag (e.g. isString)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user