❔ fluentvalidation custom validation inherit existing validation `MinimumLengthValidator`
Hello i trying to create custom validation by inherit fluentvalidator build in validator
the validator just overwrite default error message and doesnt do anything complicated
when i try register validator i get error
MinimumLengthValidator (https://github.com/FluentValidation/FluentValidation/blob/main/src/FluentValidation/Validators/LengthValidator.cs#L111) but cant find any fitting to SetValidatorthe validator just overwrite default error message and doesnt do anything complicated
when i try register validator i get error
ruleBuilder.SetValidator(new Test<T>(min, propertyPath)) it complains that it cannot resolve method for it and candidates are (see pic) how am i supposed to do this?
GitHub
A popular .NET validation library for building strongly-typed validation rules. - FluentValidation/LengthValidator.cs at main · FluentValidation/FluentValidation