10.2.1 - 30 May 2021
Optional internal type registration should work with MVC registration (#1748)
10.2.0 - 28 May 2021
Display name generation should be consistent between RuleForEach and RuleFor.ForEach (#1231)
Allow AddFluentValidation to be called directly on IServiceCollection (#1726)
Throw exception on ValidateAndThrow even if PreValidate prevents further Validation (#1736)
ValidationException now includes rule severity (#1733)
Optionally support internal types when scanning assemblies for validators (#1742)
Deprecate RunDefaultMvcValidationAfterFluentValidationExecutes in MVC configuration. Use DisableDataAnnotationsValidation instead.
10.1.0 - 28 April 2021
Allow default severity level to be set globally (#1715)
Extend use of variance into the internal API to resolve invalid cast exceptions in some scenarios (#1711)
Fix clientside metadata being incorrectly generated for cross-property LessThanOrEqual/GreaterThanOrEqual (#1721)
10.0.4 - 17 April 2021
Fix a bug where async conditions were sometimes run synchronously.
10.0.3 - 15 April 2021
Fix ArgumentOutOfRangeException when condition returns false for RuleForEach containing multiple components (#1698)
10.0.2 - 9 April 2021
Expose ErrorCode property on IRuleComponent.
10.0.1 - 8 April 2021
Add GetPropertyValue method to IValidationRule
Fix context parameter types on IValidationRule.ApplyCondition and ApplyAsyncCondition.
10.0.0 - 6 April 2021
Please review the upgrade guide for 10.0: https://docs.fluentvalidation.net/en/latest/upgrading-to-10.html
Performance improvements.
Collection rules now only iterate the collection once.
Property validators are now generic.
Internal API now uses generics.
Deprecated non-generic PropertyValidator.
Various property validator options have been seperated into RuleComponents.
Various parts of the internal API are now internal (PropertyRule, CollectionPropertyRule etc).
ValidatorDescriptor now returns rule components in various places.
Changed type of ValidationResult.Errors from IList to List
Default service lifetime is now Scoped rather than Transient.
Combine IActionContextValidatorInterceptor and IValidatorInterceptor.
Changes to the ASP.NET Client Validator Adaptor interfaces. These now receive the rule component.
Removed deprecated IStringSource and its inheritors.
Removed deprecated FormattedMessageArguments from ValidationFailure.
Removed other deprecated code.
9.5.4 - 5 April 2021
Fix Serbian translation of error messages (#1683)
Add Vietnamese translations of error messages (#1677)
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](https://app.dependabot.com):
- 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)
Bumps FluentValidation from 9.3.0 to 10.2.1.
Release notes
Sourced from FluentValidation's releases.
... (truncated)
Changelog
Sourced from FluentValidation's changelog.
... (truncated)
Commits
ede6057
Revert doc change, update changelog.17620dc
Add missing includeInternalTypes parameter to MVC validator scanning (#1748)f0de9ab
Update aspnet.mdce98d9c
Bump version2f910f6
Deprecate RunDefaultMvcValidationAfterFluentValidationExecutes in favour of D...ec05354
Update blazor docsf565117
Update issue templates41bfcdc
Remove some old test extensionsc68d8d3
Remove unused test extension1c5a554
Throw exception on ValidateAndThrow even if PreValidate prevents further Vali...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](https://app.dependabot.com): - 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)