Releases: luismts/ValidationRulesPlugin
Releases · luismts/ValidationRulesPlugin
1.5.0.1 Release
1.5 Release
What's New in this Release
Breaking changes
- No breaking changes.
New features
- Support for .NET 6 and .NET MAUI added
1.4 Release
What's New in this Release
Breaking changes
- Change
ValueFormatter
toFormatter
forValidatable
object.
New features
- New
ValidatableList
object added for validation lists with validation rules. - New
ValidatorList Builder
added forValidatableList
object. - New
UnFormat
method added forIValueFormatter
interface. - Errors support added for
ValidationUnit
object. - New
ValueFormatted
property added forValidatable
object.
Others
- Some improvements were added.
- Some minor issues were fixed.
1.3.2 Release
Improvements
When()
rule now is an anonymous condition.
1.3.1 Release
Improvements
ValidationUnit
constructor overloaded.Append
method extension removed.
Fixed
IsEmail()
rule extension issue fixed.
1.3 Release
What's New in this Release
New features
HasErrors
property added forValidatable
object.- New
Validator Builder
added forValidatable
object. - Extension method for new
Builder
added:- New
Build
added for creating an emptyValidatable
object. - New
WithRule
added for adding rules to theValidatable
object. - New
When
condition added forValidatable
object. - New
Must
condition added forValidatable
object. Now there is no need to create rules if it is not necessary.
- New
ValidationRule
extension methods added:- New
WithMessage
added - New
IsRequired
added
- New
Validator
class wrapper for models added.- Create a
ValidationUnit
with all yourValidatable
properties in your validator model with theInitUnit()
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.
- Create a
- 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 theHasError
property.
Fixed
Validatable
object constructor issue fixed.- Some minor issues fixed.
Thanks amazing contributor
1.2.2 Release
Improvements
ValueChanged
event now is release byIDisposable
interface.
Fixed
- null or empty assignment issue on
Validatable
objectValue
fixed.
1.2.1 Release
Improvements
- Better implementation for
Validatable
objectCommand
.
Fixed
EmailRule
namespace fixed.
1.2.0 Release
What's New in this Release
Validatable Objects
- ValidatableObject renamed to
Validatable
. - Now implements
ValueChanged
event. - Now implements
ValidateCommand
command. - Now can take
ValidationRules
by the constructor.
Formatters
- Now you can format your properties from your ViewModels in an easy and simple way.
- Default Formatters:
BoolNegationFormatter
MaskFormatter
StringCaseFormatter
StringNumericFormatter
Default Rules
CrediCardRule
EmailRule
EmptyRule
EnumRule
EqualRule
GreaterThanOrEqualRule
InclusiveBetweenRule
LenghtRule
LessThanOrEqualRule
LessThanRule
NotEmptyRule
NotEqualRule
NotNullRule
RegularExpressionRule
Other
- Mappers:
- Now you can use
IMapperValidator
interface and create your own mapper in a model validator. - Now you can use
MapValidator<Model, Validator>()
extension method to automap your model validators.
- Now you can use