fix: swagger导入报错
This commit is contained in:
parent
8ffa57619b
commit
f262d7a146
|
@ -308,6 +308,9 @@ public class Swagger3Parser extends SwaggerAbstractParser {
|
|||
}
|
||||
}
|
||||
if (body != null) {
|
||||
if (body.getKvs() == null) {
|
||||
body.setKvs(new ArrayList<>());
|
||||
}
|
||||
body.getKvs().add(kv);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue