fix(接口定义): 修复导入postman文件文档展示缺少参数的缺陷

--bug=1016561 --user=王孝刚 【接口测试】github#17627,postman导入ms的接口,api文档中参数说明不全
https://www.tapd.cn/55049933/s/1238096
This commit is contained in:
wxg0103 2022-09-01 17:41:59 +08:00 committed by f2c-ci-robot[bot]
parent d26a703e78
commit 73c50fea5d
1 changed files with 4 additions and 4 deletions

View File

@ -147,7 +147,7 @@ public class ShareInfoService {
JSONArray headArr = requestObj.getJSONArray("headers");
for (int index = 0; index < headArr.size(); index++) {
JSONObject headObj = headArr.getJSONObject(index);
if (headObj != null && headObj.containsKey("name") && headObj.containsKey("value")) {
if (headObj != null && headObj.containsKey("name")) {
requestHeadDataArr.add(headObj);
}
}
@ -161,7 +161,7 @@ public class ShareInfoService {
for (int index = 0; index < headArr.size(); index++) {
JSONObject headObj = headArr.getJSONObject(index);
if (headObj.containsKey("name") && headObj.containsKey("value")) {
if (headObj.containsKey("name")) {
urlParamArr.add(headObj);
}
}
@ -300,7 +300,7 @@ public class ShareInfoService {
JSONArray headArr = responseJsonObj.getJSONArray("headers");
for (int index = 0; index < headArr.size(); index++) {
JSONObject headObj = headArr.getJSONObject(index);
if (headObj.containsKey("name") && headObj.containsKey("value")) {
if (headObj.containsKey("name")) {
responseHeadDataArr.add(headObj);
}
}
@ -392,7 +392,7 @@ public class ShareInfoService {
JSONArray statusArr = responseJsonObj.getJSONArray("statusCode");
for (int index = 0; index < statusArr.size(); index++) {
JSONObject statusObj = statusArr.getJSONObject(index);
if (statusObj.containsKey("name") && statusObj.containsKey("value")) {
if (statusObj.containsKey("name")) {
responseStatusDataArr.add(statusObj);
}
}