This project is read-only.

No way to verify a validation set was found


If a validator is created using ValidationFactory.CreateValidator<SomeObject>(ValidationSpecificationSource.Configuration) and there is no validation configuration for that object:
  • it does not throw an exception
  • there is no way to verify if a validation set was loaded
The end result is that if someone breaks the configuration validation does not error and will always report that an object is valid. This is very dangerous as objects that should be invalid are now valid because of a small human error in the configuration. Need a way to either: verify that validation was found for an object type or turn on the option to throw an exception. Right now ConfigurationValidatorBuilder will return private static readonly Validator EmptyValidator = new AndCompositeValidator();