Skip to content

Upgrading FluentValidation 3 to 4

Unknown3.4.6 → 4.0.0.1

UnknownUpgrade verdict

DepDelta hasn't looked for this range's notes yet, so breaking changes can't be ruled out.

  • DepDelta hasn't finished looking for the notes in this range, so it can't rule out breaking changes yet.
Unknown for releases without notes

Releases without notes may still need changes. Check their commits before upgrading.

Generated by DepDelta from published .NET assemblies. Not mixed with prose notes.

  • added: class MemberAccessor<TObject, TValue>
  • added: ctor MemberAccessor(Expression<Func<TObject, TValue>> getExpression)
  • added: method AbstractValidator.RuleForEach<TProperty>(Expression<Func<T, IEnumerable<TProperty>>> expression): IRuleBuilderInitial<T, TProperty>
  • added: method MemberAccessor.Equals(object obj): bool
  • added: method MemberAccessor.Get(TObject target): TValue
  • added: method MemberAccessor.GetHashCode(): int
  • added: method MemberAccessor.Set(TObject target, TValue value): void
  • added: method ValidatorDescriptor.GetValidatorsForMember<TValue>(MemberAccessor<T, TValue> accessor): IEnumerable<IPropertyValidator>
  • added: property MemberAccessor.Member: MemberInfo { get; }
  • added: protected method MemberAccessor.Equals(MemberAccessor<TObject, TValue> other): bool
  • added: static class MemberAccessor<TObject>
  • added: static class PropertyRuleValidatorExtensions
  • added: static method DefaultValidatorExtensions.GreaterThanOrEqualTo<T, TProperty>(IRuleBuilder<T, TProperty?> ruleBuilder, Expression<Func<T, TProperty?>> valueToCompare): IRuleBuilderOptions<T, TProperty?>
  • added: static method DefaultValidatorExtensions.LessThanOrEqualTo<T, TProperty>(IRuleBuilder<T, TProperty?> ruleBuilder, Expression<Func<T, TProperty?>> expression): IRuleBuilderOptions<T, TProperty?>
  • added: static method DefaultValidatorExtensions.Matches<T>(IRuleBuilder<T, string> ruleBuilder, Regex regex): IRuleBuilderOptions<T, string>
  • added: static method DefaultValidatorExtensions.Matches<T>(IRuleBuilder<T, string> ruleBuilder, string expression, RegexOptions options): IRuleBuilderOptions<T, string>
  • added: static method DefaultValidatorOptions.WithMessage<T, TProperty>(IRuleBuilderOptions<T, TProperty> rule, string errorMessage, Func<T, TProperty, object>[] funcs): IRuleBuilderOptions<T, TProperty>
  • added: static method MemberAccessor.From<TValue>(Expression<Func<TObject, TValue>> getExpression): MemberAccessor<TObject, TValue>
  • added: static method MemberAccessor.op_Implicit(Expression<Func<TObject, TValue>> this): MemberAccessor<TObject, TValue>
  • added: static method MemberAccessor.op_Implicit(MemberAccessor<TObject, TValue> this): Expression<Func<TObject, TValue>>
  • added: static method PropertyRuleValidatorExtensions.ClearRules<T>(IValidator<T> validators, Expression<Func<T, object>> expression): void
  • added: static method PropertyRuleValidatorExtensions.RemoveRule<T>(IValidator<T> validators, Expression<Func<T, object>> expression, Type oldValidatorType): void
  • added: static method PropertyRuleValidatorExtensions.ReplaceRule<T>(IValidator<T> validators, Expression<Func<T, object>> expression, IPropertyValidator newValidator): void
  • added: class CollectionPropertyRule<TProperty> extends PropertyRule
  • added: ctor CollectionPropertyRule(MemberInfo member, Func<object, object> propertyFunc, LambdaExpression expression, Func<CascadeMode> cascadeModeThunk, Type typeToValidate, Type containerType)
  • added: method PropertyRule.ClearValidators(): void
  • added: method PropertyRule.RemoveValidator(IPropertyValidator original): void
  • added: property PropertyRule.MessageBuilder: Func<PropertyValidatorContext, string> { get; set; }
  • added: protected method CollectionPropertyRule.InvokePropertyValidator(ValidationContext context, IPropertyValidator validator, string propertyName): IEnumerable<ValidationFailure>
  • added: static class Comparer
  • added: static method CollectionPropertyRule.Create<T>(Expression<Func<T, IEnumerable<TProperty>>> expression, Func<CascadeMode> cascadeModeThunk): CollectionPropertyRule<TProperty>
  • added: static method Comparer.GetComparisonResult(IComparable value, IComparable valueToCompare): int
  • added: static method Comparer.GetEqualsResult(IComparable value, IComparable valueToCompare): bool
  • added: static method Comparer.TryCompare(IComparable value, IComparable valueToCompare, out int result): bool
  • added: class LazyStringSource implements IStringSource
  • added: ctor LazyStringSource(Func<string> stringProvider)
  • added: method LazyStringSource.GetString(): string
  • added: property LazyStringSource.ResourceName: string { get; }
  • added: property LazyStringSource.ResourceType: Type { get; }
  • added: static property Messages.scale_precision_error: string { get; }
  • changed: property DelegatingValidator.CustomMessageFormatArguments: ICollection<Func<object, object>> { get; } → property DelegatingValidator.CustomMessageFormatArguments: ICollection<Func<object, object, object>> { get; }
  • changed: property IPropertyValidator.CustomMessageFormatArguments: ICollection<Func<object, object>> { get; } → property IPropertyValidator.CustomMessageFormatArguments: ICollection<Func<object, object, object>> { get; }
  • changed: property NoopPropertyValidator.CustomMessageFormatArguments: ICollection<Func<object, object>> { get; } → property NoopPropertyValidator.CustomMessageFormatArguments: ICollection<Func<object, object, object>> { get; }
  • changed: property PropertyValidator.CustomMessageFormatArguments: ICollection<Func<object, object>> { get; } → property PropertyValidator.CustomMessageFormatArguments: ICollection<Func<object, object, object>> { get; }
  • added: class MaximumLengthValidator extends LengthValidator
  • added: class MinimumLengthValidator extends LengthValidator
  • added: class ScalePrecisionValidator extends PropertyValidator
  • added: ctor MaximumLengthValidator(int max)
  • added: ctor MaximumLengthValidator(int max, Expression<Func<string>> errorMessageResourceSelector)
  • added: ctor MinimumLengthValidator(int min)
  • added: ctor MinimumLengthValidator(int min, Expression<Func<string>> errorMessageResourceSelector)
  • added: ctor RegularExpressionValidator(Regex regex)
  • added: ctor RegularExpressionValidator(string expression, RegexOptions options)
  • added: ctor ScalePrecisionValidator(int scale, int precision)
  • added: ctor ScalePrecisionValidator(int scale, int precision, Expression<Func<string>> errorMessageResourceSelector)
  • added: ctor ScalePrecisionValidator(int scale, int precision, string errorMessage)
  • added: ctor ScalePrecisionValidator(int scale, int precision, string errorMessageResourceName, Type errorMessageResourceType)
  • added: property ScalePrecisionValidator.IgnoreTrailingZeros: bool? { get; set; }
  • added: property ScalePrecisionValidator.Precision: int { get; set; }
  • added: property ScalePrecisionValidator.Scale: int { get; set; }
  • added: protected method ScalePrecisionValidator.IsValid(PropertyValidatorContext context): bool