fix(接口定义): 修复导入postman文件文档展示缺少参数的缺陷
--bug=1016561 --user=王孝刚 【接口测试】github#17627,postman导入ms的接口,api文档中参数说明不全 https://www.tapd.cn/55049933/s/1238096
This commit is contained in:
parent
d26a703e78
commit
73c50fea5d
|
@ -147,7 +147,7 @@ public class ShareInfoService {
|
||||||
JSONArray headArr = requestObj.getJSONArray("headers");
|
JSONArray headArr = requestObj.getJSONArray("headers");
|
||||||
for (int index = 0; index < headArr.size(); index++) {
|
for (int index = 0; index < headArr.size(); index++) {
|
||||||
JSONObject headObj = headArr.getJSONObject(index);
|
JSONObject headObj = headArr.getJSONObject(index);
|
||||||
if (headObj != null && headObj.containsKey("name") && headObj.containsKey("value")) {
|
if (headObj != null && headObj.containsKey("name")) {
|
||||||
requestHeadDataArr.add(headObj);
|
requestHeadDataArr.add(headObj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -161,7 +161,7 @@ public class ShareInfoService {
|
||||||
for (int index = 0; index < headArr.size(); index++) {
|
for (int index = 0; index < headArr.size(); index++) {
|
||||||
|
|
||||||
JSONObject headObj = headArr.getJSONObject(index);
|
JSONObject headObj = headArr.getJSONObject(index);
|
||||||
if (headObj.containsKey("name") && headObj.containsKey("value")) {
|
if (headObj.containsKey("name")) {
|
||||||
urlParamArr.add(headObj);
|
urlParamArr.add(headObj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -300,7 +300,7 @@ public class ShareInfoService {
|
||||||
JSONArray headArr = responseJsonObj.getJSONArray("headers");
|
JSONArray headArr = responseJsonObj.getJSONArray("headers");
|
||||||
for (int index = 0; index < headArr.size(); index++) {
|
for (int index = 0; index < headArr.size(); index++) {
|
||||||
JSONObject headObj = headArr.getJSONObject(index);
|
JSONObject headObj = headArr.getJSONObject(index);
|
||||||
if (headObj.containsKey("name") && headObj.containsKey("value")) {
|
if (headObj.containsKey("name")) {
|
||||||
responseHeadDataArr.add(headObj);
|
responseHeadDataArr.add(headObj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -392,7 +392,7 @@ public class ShareInfoService {
|
||||||
JSONArray statusArr = responseJsonObj.getJSONArray("statusCode");
|
JSONArray statusArr = responseJsonObj.getJSONArray("statusCode");
|
||||||
for (int index = 0; index < statusArr.size(); index++) {
|
for (int index = 0; index < statusArr.size(); index++) {
|
||||||
JSONObject statusObj = statusArr.getJSONObject(index);
|
JSONObject statusObj = statusArr.getJSONObject(index);
|
||||||
if (statusObj.containsKey("name") && statusObj.containsKey("value")) {
|
if (statusObj.containsKey("name")) {
|
||||||
responseStatusDataArr.add(statusObj);
|
responseStatusDataArr.add(statusObj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue