Skip to content

Commit

Permalink
fix: extensionsParamChecker
Browse files Browse the repository at this point in the history
  • Loading branch information
fuhouyu committed Nov 30, 2024
1 parent 2678342 commit 589afad
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,17 @@ public ParamCheckResponse checkParamInfoList(List<ParamInfo> paramInfos, Functio
}
for (ParamInfo paramInfo : paramInfos) {
paramCheckResponse = checkParamInfoFormat(paramInfo);
if (Objects.nonNull(extensionsParamChecker)) {
paramCheckResponse = extensionsParamChecker.apply(paramInfo);
}
if (!paramCheckResponse.isSuccess()) {
return paramCheckResponse;
}
// if extensionsParamChecker exists, check params
if (Objects.nonNull(extensionsParamChecker)) {
paramCheckResponse = extensionsParamChecker.apply(paramInfo);
// if not success ,return
if (!paramCheckResponse.isSuccess()) {
return paramCheckResponse;
}
}
}
paramCheckResponse.setSuccess(true);
return paramCheckResponse;
Expand Down

0 comments on commit 589afad

Please sign in to comment.