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