All Versions
5
Latest Version
Avg Release Cycle
82 days
Latest Release
2027 days ago

Changelog History

  • v2.0.0 Changes

    October 07, 2018

    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.

  • v1.0.0 Changes

    March 31, 2018
    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
  • v1.0.0-preview1 Changes

    January 29, 2018

    ๐Ÿšš 1. Removed IValitRulesProvider<TObject> interface.

    1. Both Ensure and EnsureFor methods for nested objects accepts nowIValitator<TObject> as a parameter. 0๏ธโƒฃ 3. Each validation rule has now a default error message
  • v0.2.0 Changes

    December 05, 2017

    ๐Ÿ‘ 1. Added support for bool type. ๐Ÿ‘ 2. Added support for validating nested objects. ๐Ÿ‘ 3. Added support for validation collections.

    1. Introduced IValitRulesProvider<TObject> interface.
    2. Introduced IValitator<TObject> interface .
    3. Added CreateValitator() extentension methods for both IValitRulesProvider<TObject> and IValitRules<TObject> types..
    4. Added new overload for WithMessage() extension method which accepts Func<string> as parameter.
    5. Added missing Required() rule for string type.
  • v0.1.0 Changes

    November 12, 2017
    1. Added validation rules for the following data types (with full support for Nullable<T>):
    • Byte
    • DateTime
    • DateTimeOffset
    • Decimal
    • Double
    • Float
    • Guid
    • IEnumerable<T>
    • Int16
    • Int32
    • Int64
    • SByte
    • String
    • TimeSpan
    • UInt16
    • UInt32
    • UInt64

    ๐Ÿท Added support for tagging rules.

    Added support for creating conditional rules.

    Added support for validation strategies :

    • 0๏ธโƒฃ Complete (default)
    • Fail Fast
    • Custom strategy
    1. Added support for validation errors :
    • Error messages, Message providers
    • Error codes