github FluentValidation/FluentValidation 10.0.4

latest releases: 11.11.0, 11.10.0, 11.9.2...
3 years ago

Release notes

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

Changes in 10.0.4

  • Resolved an issue where async conditions were run synchronously when applied to synchronous property validators

Changes in 10.0.3

  • Fix ArgumentOutOfRangeException when condition returns false for RuleForEach containing multiple components (#1698)

Changes in 10.0.2

  • ErrorCode is now exposed on IRuleComponent

Changes in 10.0.1

  • Add GetPropertyValue to IValidationRule to support #1688
  • Context object is now strongly typed inside IValidationRule<T>.ApplyCondition/ApplyAsyncCondition for users of the internal API

Changes in 10.0.0

  • Various performance improvements throughout the library
  • Collection rules now only iterate the collection once
  • Property validator classes are now generic
  • Deprecated non-generic PropertyValidator.
  • Changed type of ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure>
  • The internal API now uses generics.
  • 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, where PropertyValidators were previously returned
  • Default service lifetime in ASP.NET projects is now Scoped rather than Transient.
  • Combined 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.

Downloads

Binaries can be downloaded from nuget:

Don't miss a new FluentValidation release

NewReleases is sending notifications on new releases.