fix: swagger导入报错

This commit is contained in:
chenjianxing 2021-07-30 10:54:38 +08:00 committed by jianxing
parent 8ffa57619b
commit f262d7a146
1 changed files with 3 additions and 0 deletions

View File

@ -308,6 +308,9 @@ public class Swagger3Parser extends SwaggerAbstractParser {
} }
} }
if (body != null) { if (body != null) {
if (body.getKvs() == null) {
body.setKvs(new ArrayList<>());
}
body.getKvs().add(kv); body.getKvs().add(kv);
} }
} }