mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 03:58:33 +08:00
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 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");
|
||||
}
|
||||
|
@ -9,6 +9,7 @@ public class PostmanKeyValue {
|
||||
private String type;
|
||||
private String description;
|
||||
private String contentType;
|
||||
private boolean required;
|
||||
|
||||
public PostmanKeyValue() {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user