You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+12
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,18 @@
2
2
3
3
Represents the **NuGet** versions.
4
4
5
+
## v3.16.0
6
+
-*Enhancement*: Added basic [FluentValidator](https://docs.fluentvalidation.net/en/latest/) compatibility to the `CoreEx.Validation` by supporting _key_ (common) named capabilities:
7
+
-`AbstractValidator<T>` added as a wrapper for `Validator<T>`; with both supporting `RuleFor` method (wrapper for existing `Property`).
-`NullRule` and `NotNullRule` added to support the `Null` and `NotNull` capabilities specifically.
10
+
-`WithMessage` added to explcitly set the error message for a preceeding `IValueRule` (equivalent to specifying when invoking extension method).
11
+
-`ValidatorStrings` have had their fallback texts added to ensure an appropriate text is output where `ITextProvider` is not available.
12
+
-_Note:_ The above changes are to achieve a basic level of compatibility, they are not intended to implement the full capabilities of _FluentValidation_; nor, will it ever. The `CoreEx.FluentValidation` enables _FluentValidation_ to be used directly where required; also, the existing `CoreEx.Validation.InteropRule` enables interoperability between the two.
13
+
-*Enhancement*: Added `StringSyntaxAttribute` support to improve intellisense for JSON and URI specification.
14
+
-*Enhancement*: Added `EventPublisherHealthCheck` that will send an `EventData` message to verify that the `IEventPublisher` is functioning correctly.
15
+
-_Note:_ only use where the corresponding subscriber(s)/consumer(s) are aware and can ignore/filter to avoid potential downstream challenges.
16
+
5
17
## v3.15.0
6
18
-*Enhancement*: This is a clean-up version to remove all obsolete code and dependencies. This will result in a number of minor breaking changes, but will ensure that the codebase is up-to-date and maintainable.
7
19
- As per [`v3.14.0`](#v3.14.0) the previously obsoleted `TypedHttpClientBase` methods `WithRetry`, `WithTimeout`, `WithCustomRetryPolicy` and `WithMaxRetryDelay` are now removed; including `TypedHttpClientOptions`, `HttpRequestLogger` and related `SettingsBase` capabilities.
assertor.Owner.Implementor.AssertAreEqual(expectedUri,vcr.Location,$"Expected and Actual {nameof(ValueContentResult.Location)} values are not equal.");
@@ -256,7 +285,7 @@ public static ActionResultAssertor AssertLocationHeaderContains(this ActionResul
/// Sets the <see cref="ValueRuleBase{TEntity, TProperty}.ErrorText"/> for the last <see cref="AddRule(IValueRule{TEntity, TProperty})">rule</see> added.
47
+
/// </summary>
48
+
/// <param name="errorText">The error message format text.</param>
Copy file name to clipboardexpand all lines: src/CoreEx.Validation/PropertyRule.cs
+6
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
// Copyright (c) Avanade. Licensed under the MIT License. See https://github.com/Avanade/CoreEx
2
2
3
3
usingCoreEx.Abstractions.Reflection;
4
+
usingCoreEx.Localization;
4
5
usingCoreEx.Validation.Clauses;
5
6
usingCoreEx.Validation.Rules;
6
7
usingSystem;
@@ -63,6 +64,11 @@ public async Task ValidateAsync(ValidationContext<TEntity> context, Cancellation
63
64
returnthis;
64
65
}
65
66
67
+
/// <summary>
68
+
/// Gets or sets the error message format text (overrides the default).
69
+
/// </summary>
70
+
LText?IValueRule<TEntity,TProperty>.ErrorText{get=>thrownewNotSupportedException("ErrorText should not bet set directly on a PropertyRule.");set=>thrownewNotSupportedException("ErrorText should not bet set directly on a PropertyRule.");}
0 commit comments