fix: postman导入后参数无法编辑
This commit is contained in:
parent
7f7de58d82
commit
7d5b2fffb0
|
@ -39,6 +39,7 @@ public abstract class PostmanAbstractParserParser<T> extends ApiImportAbstractPa
|
|||
} else {
|
||||
request.setPath("/");
|
||||
}
|
||||
request.getBody().setType("KeyValue");
|
||||
parseBody(request.getBody(), requestDesc);
|
||||
request.setArguments(parseKeyValue(url == null ? new ArrayList<>() : url.getQuery()));
|
||||
request.setHeaders(parseKeyValue(requestDesc.getHeader()));
|
||||
|
@ -104,7 +105,7 @@ public abstract class PostmanAbstractParserParser<T> extends ApiImportAbstractPa
|
|||
|
||||
private List<KeyValue> parseKeyValue(List<PostmanKeyValue> postmanKeyValues) {
|
||||
if (postmanKeyValues == null) {
|
||||
return null;
|
||||
return new ArrayList<>();
|
||||
}
|
||||
List<KeyValue> keyValues = new ArrayList<>();
|
||||
postmanKeyValues.forEach(item -> {
|
||||
|
|
Loading…
Reference in New Issue