Why does ServiceStack not implement the ruleSet optional parameter in the Validate method?
I have found you can call it by casting to AbstractValidator
var validator = new PersonValidator();
var person = new Person();
var result = ((AbstractValidator<Person>)validator).Validate(person, ruleSet: "Names");
It seems that form of IValidator.Validate() is an extension method, so you could instead add a using statement to your cs file, and it should work as-is.
using ServiceStack.FluentValidation;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With