Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Bump FluentValidation from 8.0.100 to 9.2.0 #60

Closed

Conversation

dependabot-preview[bot]
Copy link

Bumps FluentValidation from 8.0.100 to 9.2.0.

Release notes

Sourced from FluentValidation's releases.

9.2.0

Release notes

Please read the upgrade guide if you are moving from 8.x to 9.x

Changes in 9.2.0

Changes in 9.1.3

  • Fix an issue with IncludeRulesNotInRuleSet not working correctly (#1493)

Changes in 9.1.2

  • Make the ValidationContext.ThrowOnFailures getter public.

Changes in 9.1.1

  • Update incorrect wording in CascadeMode.StopOnFirstFailure deprecation warning.

Changes in 9.1.0

  • Add new Validate extension methods that allow options to be configured using a strategy (#1467)
  • Introduce CascadeMode.Stop and deprecate CascadeMode.StopOnFirstFailure to resolve confusion/abiguity about setting the cascade mode at validator-level (#1437)
  • RaiseValidationException can be overridden to customize the exception throwing process (#1162)
  • Make ruleset separator character splitting consistent (#1424)
  • Transform now works with RuleForEach (#1450)
  • Introduce constants for rulesets (#1435)
  • Resolve issue when attempting to use asynchronous conditions in a synchornous validaiton run (#1438)
  • Added asynchronous versions of the TestHelper methods (#1423)

Example of using the new validation strategy:

// Validate specific rulesets
validator.Validate(instance, opt => {
  opt.IncludeRuleSets("MyRuleSet", "SomeOtherRuleSet");
// Can also force rules not in a ruleset to be run
opt.IncludeRulesNotInRuleSet();
});
// Validate specific properties
validator.Validate(instance, opt => {
opt.IncludeProperties("Forename", "Surname");
// or
opt.IncludeProperties(x => x.Surname, x.Forename);
});
</tr></table> ... (truncated)

Changelog

Sourced from FluentValidation's changelog.

9.2.0 - 26 August 2020 Add inheritance validator (#1237) Performance improvements.

9.1.3 - 19 August 2020 Fix an issue with IncludeRulesNotInRuleSet not working correctly (#1493)

9.1.2 - 12 August 2020 Make the ValidationContext.ThrowOnFailures getter public.

9.1.1 - 8 August 2020 Update StopOnFirstFailure deprecation message.

9.1 - 8 August 2020 Make ruleset separator character splitting consistent (#1424) Transform now works with RuleForEach (#1450) Introduce constants for rulesets (#1435) Resolve issue when attempting to use asynchronous conditions in a synchornous validaiton run (#1438) Added asynchronous versions of the TestHelper methods (#1423) Introduce CascadeMode.Stop and deprecate CascadeMode.StopOnFirstFailure to resolve confusion/abiguity about setting the cascade mode at validator-level (#1437) RaiseValidationException can be overridden to customize the exception throwing process (#1162) Add new Validate extension methods that allow options to be configured using a strategy (#1467)

9.0.1 - 14 July 2020 Fix assembly version was still 8.

9.0 - 6 July 2020 Removed support for netstandard1.1, netstandard1.6 and net45 (net461 still supported) Removed support for unsupported .NET Core versions (2.2 and 3.0). LTS versions are supported (2.1 and 3.1) Default email validation mode now uses the same logic as ASP.NET Core. Previous regex behaviour is opt-in. TestHelper advanced mode now has more features (see https://docs.fluentvalidation.net/en/latest/testing.html#advanced-test-extensions) Equal/NotEqual now perform ordinal comparison when used with string properties Severity can now be set dynamically with a callback Removed WithLocalizedMessage (WithMessage that takes a callback is the replacement) Removed ResourceName from ValidationFailure Removed ResourceName and ResourceType from IStringSource. Removed SetCollectionValidator which was deprecated in 8.0 Removed DelegatingValidator which was deprecated in 8.x. Additional overload of OnAnyFailure that can receive a collection of validation failures Remove DisplayAttribute integration and reference to DataAnnotations. ComparisonProperty placeholder is now formatted like PropertyName Translations of default error messages into other languages are now lazily-loaded PropertyValidator.ShouldValidateAsync reanamed to ShouldValidateAsynchronously to remove confusion where the naming suggested this was an async method PropertyValidatorContext.Instance renamed to InstanceToValidate for consistency with ValidationContext. Removed various methods from MessageFormatter that were deprecated in 8.x Added Slovenian translations of default error messages. Added Icelandic translations of default error messages. Added WithMessageArgument to the test helpers. Transform can now be used to transform property values to other types. FluentValidationModelValidatorProvider and FluentValidationModelValidator are now public.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Aug 27, 2020
@dependabot-preview
Copy link
Author

Superseded by #62.

@dependabot-preview dependabot-preview bot deleted the dependabot/nuget/FluentValidation-9.2.0 branch September 21, 2020 05:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants