接口新增校验匹配条件
This commit is contained in:
parent
ac952deb8a
commit
4b4d4cd2b7
@ -219,7 +219,6 @@ public class GatewayInterfaceInfoServiceImpl implements IGatewayInterfaceInfoSer
|
||||
gatewayInterfaceMockList.forEach(mock -> {
|
||||
Assert.notNull(mock.getHttpStatus(), "HTTP状态码不能为空");
|
||||
Assert.isTrue(JSONUtils.isJSONObject(mock.getMockResponse()), "请输入正确格式的默认响应信息");
|
||||
try {
|
||||
List<MockMatchCondition> conditionDTOList = mock.getMatchConditions();
|
||||
Assert.notEmpty(conditionDTOList, "至少存在一条匹配条件");
|
||||
conditionDTOList.forEach(condition -> {
|
||||
@ -241,9 +240,6 @@ public class GatewayInterfaceInfoServiceImpl implements IGatewayInterfaceInfoSer
|
||||
break;
|
||||
}
|
||||
});
|
||||
} catch (Exception e) {
|
||||
log.error("JSONUtils.isJSONArray catch \n" + e.getMessage());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user