fix:修复接口导入required参数缺失问题

This commit is contained in:
laoliangliang 2024-01-02 10:45:35 +08:00 committed by Craftsman
parent 292be7150c
commit 018243c4aa
2 changed files with 2 additions and 1 deletions

View File

@ -128,7 +128,7 @@ public abstract class PostmanAbstractParserParser<T> extends ApiImportAbstractPa
String k = parseVariable(item.getKey());
String v = parseVariable(item.getValue());
String desc = parseVariable(item.getDescription());
KeyValue keyValue = new KeyValue(k, v, desc, item.getContentType());
KeyValue keyValue = new KeyValue(k, v, desc, item.getContentType(), item.isRequired());
if (StringUtils.isNotBlank(item.getType()) && StringUtils.equals("file", item.getType())) {
keyValue.setType("file");
}

View File

@ -9,6 +9,7 @@ public class PostmanKeyValue {
private String type;
private String description;
private String contentType;
private boolean required;
public PostmanKeyValue() {
}