use of com.netflix.spinnaker.front50.validator.ApplicationValidationErrors in project front50 by spinnaker.
the class ApplicationService method validate.
private void validate(Application application) {
ApplicationValidationErrors errors = new ApplicationValidationErrors(application);
validators.forEach(v -> v.validate(application, errors));
if (errors.hasErrors()) {
throw new ValidationException(errors);
}
}
Aggregations