SUPPORT-8974 ???
This commit is contained in:
parent
490bc9bb5e
commit
439d5ab2a2
5 changed files with 23 additions and 11 deletions
|
|
@ -114,7 +114,7 @@ public class ValidationService {
|
|||
}
|
||||
|
||||
if (ids == null || ids.isEmpty()) {
|
||||
throw new IllegalRequestParametersException("пустые идентификаторы не допускаются");
|
||||
throw new IllegalRequestParametersException("eks.error.argument.missing");
|
||||
}
|
||||
|
||||
Boolean isIdsFormatted = request.getRequestValidationRules().getIsIdsFormatted();
|
||||
|
|
@ -124,7 +124,7 @@ public class ValidationService {
|
|||
boolean invalidIdFound = ids.stream().anyMatch(id -> !id.matches(uuidRegex));
|
||||
|
||||
if (invalidIdFound) {
|
||||
throw new IllegalRequestParametersException("Некоторые идентификаторы не соответствуют формату GUID");
|
||||
throw new IllegalRequestParametersException("eks.error.argument.invalid");
|
||||
}
|
||||
}
|
||||
return Map.of(ValidationService.IS_EMPTY_IDS_ALLOWED, emptyIdsAllowed);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue