Skip to content

Releases: valit-stack/Valit

v2.0.0

07 Oct 15:06
6ccc729
Compare
Choose a tag to compare
  • 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

31 Mar 13:16
a522175
Compare
Choose a tag to compare
  1. Changed Target Framework to .NET Standard 2.0
  2. Removed IValitRulesProvider<TObject> interface.
  3. Both Ensure and EnsureFor methods for nested objects accepts now IValitator<TObject> as a parameter.
  4. Each validation rule has now a default error message

v1.0.0-preview1

29 Jan 20:02
6794485
Compare
Choose a tag to compare
v1.0.0-preview1 Pre-release
Pre-release
  1. Removed IValitRulesProvider<TObject> interface.
  2. Both Ensure and EnsureFor methods for nested objects accepts nowIValitator<TObject> as a parameter.
  3. Each validation rule has now a default error message

v0.2.0

05 Dec 17:31
7385a1f
Compare
Choose a tag to compare
  1. Added support for bool type.
  2. Added support for validating nested objects.
  3. Added support for validation collections.
  4. Introduced IValitRulesProvider<TObject> interface.
  5. Introduced IValitator<TObject> interface .
  6. Added CreateValitator() extentension methods for both IValitRulesProvider<TObject> and IValitRules<TObject> types..
  7. Added new overload for WithMessage() extension method which accepts Func<string> as parameter.
  8. Added missing Required() rule for string type.

v0.1.0

12 Nov 15:49
311ea36
Compare
Choose a tag to compare
  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
  1. Added support for tagging rules.

  2. Added support for creating conditional rules.

  3. Added support for validation strategies:

  • Complete (default)
  • Fail Fast
  • Custom strategy
  1. Added support for validation errors:
  • Error messages, Message providers
  • Error codes