SUPPORT-8974 ???

This commit is contained in:
ivanov.denis 2025-03-05 17:59:29 +03:00
parent 490bc9bb5e
commit 439d5ab2a2
5 changed files with 23 additions and 11 deletions

View file

@ -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);