All Versions
5
Latest Version
Avg Release Cycle
82 days
Latest Release
2316 days ago
Changelog History
Changelog History
-
v2.0.0 Changes
October 07, 2018All string rules has their predicates changed. Instead of
string.IsNullOrEmpty(argument)
onlynull
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 ifWhen()
condition is not fulfilled. -
v1.0.0 Changes
March 31, 2018- Changed Target Framework to .NET Standard 2.0
๐ 2. Removed
IValitRulesProvider<TObject>
interface. - 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
- Changed Target Framework to .NET Standard 2.0
๐ 2. Removed
-
v1.0.0-preview1 Changes
January 29, 2018๐ 1. Removed
IValitRulesProvider<TObject>
interface.- Both
Ensure
andEnsureFor
methods for nested objects accepts nowIValitator<TObject>
as a parameter. 0๏ธโฃ 3. Each validation rule has now a default error message
- Both
-
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.- Introduced
IValitRulesProvider<TObject>
interface. - Introduced
IValitator<TObject>
interface . - Added
CreateValitator()
extentension methods for bothIValitRulesProvider<TObject>
andIValitRules<TObject>
types.. - Added new overload for
WithMessage()
extension method which acceptsFunc<string>
as parameter. - Added missing
Required()
rule forstring
type.
- Introduced
-
v0.1.0 Changes
November 12, 2017- 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
- Added support for validation errors :
- Error messages, Message providers
- Error codes
- Added validation rules for the following data types (with full support for