fix:修复接口导入required参数缺失问题
This commit is contained in:
parent
292be7150c
commit
018243c4aa
|
@ -128,7 +128,7 @@ public abstract class PostmanAbstractParserParser<T> extends ApiImportAbstractPa
|
||||||
String k = parseVariable(item.getKey());
|
String k = parseVariable(item.getKey());
|
||||||
String v = parseVariable(item.getValue());
|
String v = parseVariable(item.getValue());
|
||||||
String desc = parseVariable(item.getDescription());
|
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())) {
|
if (StringUtils.isNotBlank(item.getType()) && StringUtils.equals("file", item.getType())) {
|
||||||
keyValue.setType("file");
|
keyValue.setType("file");
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@ public class PostmanKeyValue {
|
||||||
private String type;
|
private String type;
|
||||||
private String description;
|
private String description;
|
||||||
private String contentType;
|
private String contentType;
|
||||||
|
private boolean required;
|
||||||
|
|
||||||
public PostmanKeyValue() {
|
public PostmanKeyValue() {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue