Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.16.0 #96

Merged
merged 3 commits into from
Mar 29, 2024
Merged

v3.16.0 #96

merged 3 commits into from
Mar 29, 2024

Conversation

chullybun
Copy link
Collaborator

  • Enhancement: Added basic FluentValidator compatibility to the CoreEx.Validation by supporting key (common) named capabilities:
    • AbstractValidator<T> added as a wrapper for Validator<T>; with both supporting RuleFor method (wrapper for existing Property).
    • NotEmpty, NotNull, Empty, Null, InclusiveBetween, ExclusiveBetween, Equal, NotEqual, LessThan, LessThanOrEqualTo, GreaterThan, GreaterThanOrEqualTo, Matches, Length, MinimumLength, MaximumLength, PrecisionScale, EmailAddress and IsInEnum extension methods added (invoking existing equivalents).
    • NullRule and NotNullRule added to support the Null and NotNull capabilities specifically.
    • WithMessage added to explcitly set the error message for a preceeding IValueRule (equivalent to specifying when invoking extension method).
    • ValidatorStrings have had their fallback texts added to ensure an appropriate text is output where ITextProvider is not available.
    • 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.
  • Enhancement: Added StringSyntaxAttribute support to improve intellisense for JSON and URI specification.
  • Enhancement: Added EventPublisherHealthCheck that will send an EventData message to verify that the IEventPublisher is functioning correctly.
    • Note: only use where the corresponding subscriber(s)/consumer(s) are aware and can ignore/filter to avoid potential downstream challenges.

StringSyntaxAttribute conditional compile.
Update Validation doco.
Additional Validation tests.
@chullybun chullybun merged commit 929adec into main Mar 29, 2024
2 checks passed
@chullybun chullybun deleted the v3.16.0 branch March 29, 2024 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant