fix: swagger导入报错

This commit is contained in:
chenjianxing 2021-05-11 11:11:56 +08:00 committed by jianxing
parent 5c8b76a217
commit a21a53d110
1 changed files with 3 additions and 1 deletions

View File

@ -306,9 +306,11 @@ public class Swagger3Parser extends SwaggerAbstractParser {
kv.setType("file");
}
}
if (body != null) {
body.getKvs().add(kv);
}
}
}
private String parseXmlBody(Schema schema, Object data) {
if (data instanceof JSONObject) {