Valit v2.0.0 Release Notes

Release Date: 2018-10-07 // about 3 years ago

    All string rules has their predicates changed. Instead of string.IsNullOrEmpty(argument) only null check is performed now. More details can be found in issue #166 . This is the reason why major version number has been bumped, since it may be a (business) breaking change for some folks.

    ValitRule predicate does not get evealuated if When() condition is not fulfilled.


Previous changes from v1.0.0

    1. Changed Target Framework to .NET Standard 2.0 🚚 2. Removed IValitRulesProvider<TObject> interface.
    2. Both Ensure and EnsureFor methods for nested objects accepts now IValitator<TObject> as a parameter. 0️⃣ 4. Each validation rule has now a default error message