Releases
v1.3.0
What's New in this Release
New features
HasErrors
property added for Validatable
object.
New Validator Builder
added for Validatable
object.
Extension method for new Builder
added:
New Build
added for creating an empty Validatable
object.
New WithRule
added for adding rules to the Validatable
object.
New When
condition added for Validatable
object.
New Must
condition added for Validatable
object. Now there is no need to create rules if it is not necessary.
ValidationRule
extension methods added:
New WithMessage
added
New IsRequired
added
Validator
class wrapper for models added.
Create a ValidationUnit
with all your Validatable
properties in your validator model with the InitUnit()
method.
Generate a default Validate()
method that you can use for validating your model validator without moving a finger.
Add Build()
method for creating Validable property with rules with a Fluent API.
Add Map()
method that you can override for mapping your properties.
Rules extensions with Fluent API added
IsCreditCard
IsEmail
IsEmpty
IsNotEmpty
IsEnum
IsEqual
IsNotEqual
IsNotEqual
IsInclusiveBetween
IsLessThan
IsLessThanOrEqual
IsNull
IsNotNull
WithLengthRule
WithExactLengthRule
WithMaxLengthRule
WithMinimumLengthRule
WithRegularExpression
Improvements
Builder
with Fluent API added.
Conditions rules added.
NotNullRule
generic added.
Now with the Must()
method you can validate your property in the view model or context.
Now not need to use InverseConverter
in XAML for knowing when there is an error. Now we have the HasError
property.
Fixed
Validatable
object constructor issue fixed.
Some minor issues fixed.
Thanks amazing contributor
You can’t perform that action at this time.