File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/main/java/io/swagger/codegen/v3/generators Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2697,7 +2697,9 @@ else if (schema instanceof ArraySchema) {
2697
2697
if (codegenProperty .complexType != null ) {
2698
2698
imports .add (codegenProperty .complexType );
2699
2699
}
2700
- imports .add (codegenProperty .baseType );
2700
+ if (codegenParameter .baseType != null ) {
2701
+ imports .add (codegenProperty .baseType );
2702
+ }
2701
2703
CodegenProperty innerCp = codegenProperty ;
2702
2704
while (innerCp != null ) {
2703
2705
if (innerCp .complexType != null ) {
@@ -2717,7 +2719,9 @@ else if (schema instanceof ArraySchema) {
2717
2719
setParameterNullable (codegenParameter , codegenProperty );
2718
2720
2719
2721
while (codegenProperty != null ) {
2720
- imports .add (codegenProperty .baseType );
2722
+ if (codegenProperty .baseType != null ) {
2723
+ imports .add (codegenProperty .baseType );
2724
+ }
2721
2725
codegenProperty = codegenProperty .items ;
2722
2726
}
2723
2727
}
You can’t perform that action at this time.
0 commit comments