github FluentValidation/FluentValidation 11.1.0

latest releases: 11.9.1, 11.9.0, 11.8.1...
23 months ago

Release notes

Please read the upgrade guide if you are moving from 10.x to 11.x

Changes in 11.1.0

  • Added a ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-
  • MVC auto validation: Deprecated Implicit validation of child properties (#1960)
  • MVC auto validation: Deprecated Implicit validation of root collection elements (#1960)
  • Deprecated InjectValidator (#1960)
  • Deprecated IValidatorFactory and ServiceProviderValidatorFactory (#1961)
  • Introduce services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)
  • Remove duplication between sync and async validation in the internal model.

Changes in 11.0.3

  • Fix AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)

Changes in 11.0.2

  • Child validator contexts now contain a reference to their parent context (#1945)
  • Support deserialization of ValidationResult using System.Text.Json (#1928)

Changes in 11.0.1

  • Fix regression in the Test Helper affecting the With* and Without* assertion methods (#1937)

Changes in 11.0

  • Throw exceptions when async validator is invoked synchronously (#1705)
  • Removal deprecated OnFailure/OnAnyFailure callbacks.
  • Remove deprecated RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.
  • Remove deprecated Options property from RuleComponent.
  • Remove deprecated TestHelper methods.
  • Remove non-generic PropertyValidator backwards compatibility layer.
  • Add method Only() to the test helper asserting that no other validation errors were raised.
  • Ensure property covariance is properly handled throughout the internal model (#1713)

Downloads

Binaries can be downloaded from nuget:

Don't miss a new FluentValidation release

NewReleases is sending notifications on new releases.