mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 19:08:52 +00:00
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.isBinary = isDataTypeBinary(cp.datatype);
|
||||
p.isFile = isDataTypeFile(cp.datatype);
|
||||
if (cp.complexType != null) {
|
||||
imports.add(cp.complexType);
|
||||
}
|
||||
}
|
||||
|
||||
// set boolean flag (e.g. isString)
|
||||
|
Loading…
Reference in New Issue
Block a user