Repository navigation
Releases: code-dispenser/Validated
Release list
v1.2.2
v1.2.1
Added support for .NET 10
v1.2.0
Added a precision and scale validator for both non-configuration and configuration based validators. This validator can be used for types that are either decimal or convertible to decimal such as strings or integers.
Note: The validators only ascertain if the provided value is valid, they doe not convert non-decimal valid values to decimals.
v1.1.1
Nested conditional scopes with DoWhen / EndWhen pairs are now fully supported.
The ValidationBuilder.Build method now throws InvalidOperationException if DoWhen calls are not matched with a corresponding EndWhen.
This validation was not present in version 1.1.0. If upgrading from 1.1.0 and using DoWhen, ensure each call has a matching EndWhen before calling Build to prevent this exception.
v1.1.0
Added a boolean parameter 'failFastOnNull' to the Build method on both the ValidationBuilder and TenantValidationBuider which is set to false by default. Its purpose when set to true is to return a single InvalidEntry with a failure message stating that the entity used is null, stopping all validations otherwise multiple failure messages accrue.
Added an extension method HasNullEntityFailure on Validated that checks if there are failures and returns true if there is a null entity failure message.
Added support for conditional validation on the ValidationBuilder by adding the Methods DoWhen and EndWhen. All validators after the DoWhen are included in the conditional until an EndWhen closes the group.
Added the extension method on EntityValidator to provide the conditional predicate needed for DoWhen.
v1.0.6
Fixed an issue where -1 was included in a failure message replacement instead of zero for when a non nullable collection was null.
v1.0.5
Fixed an issue in the failure message replacements for ValidatedValue, in the comparison validators that in some cases used String.Empty instead of ToString.
v1.0.4
Fixed issue in the ComparisonValidatorFactory that affected Tenant Member comparisons
against the value entered in the configuration data.
v1.0.3
Amended readme's and some xml comments.
v1.0.2
Amended readme's and some xml comments. But now the readmes have the link to the full doc site.