fix: swagger导入报错
This commit is contained in:
parent
5c8b76a217
commit
a21a53d110
|
@ -306,7 +306,9 @@ public class Swagger3Parser extends SwaggerAbstractParser {
|
||||||
kv.setType("file");
|
kv.setType("file");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
body.getKvs().add(kv);
|
if (body != null) {
|
||||||
|
body.getKvs().add(kv);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue