Issue with validators feature

Whilst standard FluentValidate rules work, when we apply restrictions with rulesets, the latest versions of ServiceStack and FluentValidate get in conflict, this code does not compile because ApplyTo.Put does not match with the expected parameter type, which is the “string”:

using Customers.ServiceModels;
using FluentValidation;
using ServiceStack;

namespace Customers.Validators
{
    public class CustomerValidator: AbstractValidator<CustomerRequest>
    {
        public CustomerValidator()
        {
            RuleSet(ApplyTo.Put, () =>
            {
                RuleFor(x => x.Id).NotEmpty();
            });
            RuleFor(x => x.Name).NotEmpty();
        }
    }
}

I’m not clear on what the issue is, this code does compile assuming CustomerRequest has both Id and Name properties?

It does not compile with my references that I installed just yesterday

Wait are you trying to use the external FluentValidation library? You can’t do that, you need to use the interned version that’s built into ServiceStack.

OK, thanks. It wasn’t clear for me from the docs.