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
ValueFormattertoFormatterforValidatableobject.
New features
- New
ValidatableListobject added for validation lists with validation rules. - New
ValidatorList Builderadded forValidatableListobject. - New
UnFormatmethod added forIValueFormatterinterface. - Errors support added for
ValidationUnitobject. - New
ValueFormattedproperty added forValidatableobject.
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
ValidationUnitconstructor overloaded.Appendmethod extension removed.
Fixed
IsEmail()rule extension issue fixed.
1.3 Release
What's New in this Release
New features
HasErrorsproperty added forValidatableobject.- New
Validator Builderadded forValidatableobject. - Extension method for new
Builderadded:- New
Buildadded for creating an emptyValidatableobject. - New
WithRuleadded for adding rules to theValidatableobject. - New
Whencondition added forValidatableobject. - New
Mustcondition added forValidatableobject. Now there is no need to create rules if it is not necessary.
- New
ValidationRuleextension methods added:- New
WithMessageadded - New
IsRequiredadded
- New
Validatorclass wrapper for models added.- Create a
ValidationUnitwith all yourValidatableproperties 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
IsCreditCardIsEmailIsEmptyIsNotEmptyIsEnumIsEqualIsNotEqualIsNotEqualIsInclusiveBetweenIsLessThanIsLessThanOrEqualIsNullIsNotNullWithLengthRuleWithExactLengthRuleWithMaxLengthRuleWithMinimumLengthRuleWithRegularExpression
Improvements
Builderwith Fluent API added.- Conditions rules added.
NotNullRulegeneric added.- Now with the
Must()method you can validate your property in the view model or context. - Now not need to use
InverseConverterin XAML for knowing when there is an error. Now we have theHasErrorproperty.
Fixed
Validatableobject constructor issue fixed.- Some minor issues fixed.
Thanks amazing contributor
1.2.2 Release
Improvements
ValueChangedevent now is release byIDisposableinterface.
Fixed
- null or empty assignment issue on
ValidatableobjectValuefixed.
1.2.1 Release
Improvements
- Better implementation for
ValidatableobjectCommand.
Fixed
EmailRulenamespace fixed.
1.2.0 Release
What's New in this Release
Validatable Objects
- ValidatableObject renamed to
Validatable. - Now implements
ValueChangedevent. - Now implements
ValidateCommandcommand. - Now can take
ValidationRulesby the constructor.
Formatters
- Now you can format your properties from your ViewModels in an easy and simple way.
- Default Formatters:
BoolNegationFormatterMaskFormatterStringCaseFormatterStringNumericFormatter
Default Rules
CrediCardRuleEmailRuleEmptyRuleEnumRuleEqualRuleGreaterThanOrEqualRuleInclusiveBetweenRuleLenghtRuleLessThanOrEqualRuleLessThanRuleNotEmptyRuleNotEqualRuleNotNullRuleRegularExpressionRule
Other
- Mappers:
- Now you can use
IMapperValidatorinterface 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