Skip to content

Releases: code-dispenser/Validated

v1.2.2

Choose a tag to compare

@code-dispenser code-dispenser released this 18 May 07:54
Immutable release. Only release title and notes can be modified.
3eaf366

Removed errant trim from the MemberValidator.CreateStringRegexValidator

v1.2.1

Choose a tag to compare

@code-dispenser code-dispenser released this 30 Apr 09:06
Immutable release. Only release title and notes can be modified.
1da895e

Added support for .NET 10

v1.2.0

Choose a tag to compare

@code-dispenser code-dispenser released this 01 Nov 15:36
Immutable release. Only release title and notes can be modified.
5f4c106

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

Choose a tag to compare

@code-dispenser code-dispenser released this 24 Oct 07:15
Immutable release. Only release title and notes can be modified.
0ddc874

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

Choose a tag to compare

@code-dispenser code-dispenser released this 17 Oct 06:28
Immutable release. Only release title and notes can be modified.
a25cc6f

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

Choose a tag to compare

@code-dispenser code-dispenser released this 17 Sep 13:41
Immutable release. Only release title and notes can be modified.
1e40e1c

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

Choose a tag to compare

@code-dispenser code-dispenser released this 15 Sep 05:58
Immutable release. Only release title and notes can be modified.
c8dedb3

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

Choose a tag to compare

@code-dispenser code-dispenser released this 02 Sep 15:12
Immutable release. Only release title and notes can be modified.
d2c92aa

Fixed issue in the ComparisonValidatorFactory that affected Tenant Member comparisons
against the value entered in the configuration data.

v1.0.3

Choose a tag to compare

@code-dispenser code-dispenser released this 01 Sep 13:22
Immutable release. Only release title and notes can be modified.
8e44d62

Amended readme's and some xml comments.

v1.0.2

Choose a tag to compare

@code-dispenser code-dispenser released this 31 Aug 14:23
89ab375

Amended readme's and some xml comments. But now the readmes have the link to the full doc site.