mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-04 09:36:12 +00:00
Fix thousands of spelling typos (#10272)
This commit is contained in:
@@ -28,11 +28,11 @@ public class OpenAPIUtils {
|
||||
Set<ConstraintViolation<T>> constraintViolations = validator.validate(obj);
|
||||
if (constraintViolations.size() > 0) {
|
||||
StringBuilder errors = new StringBuilder();
|
||||
for (ConstraintViolation<T> contraintes : constraintViolations) {
|
||||
for (ConstraintViolation<T> constraints : constraintViolations) {
|
||||
errors.append(String.format("%s.%s %s\n",
|
||||
contraintes.getRootBeanClass().getSimpleName(),
|
||||
contraintes.getPropertyPath(),
|
||||
contraintes.getMessage()));
|
||||
constraints.getRootBeanClass().getSimpleName(),
|
||||
constraints.getPropertyPath(),
|
||||
constraints.getMessage()));
|
||||
}
|
||||
throw new RuntimeException("Bean validation : " + errors);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user