Hi
There are additional overloads for WithMessage and WIthLocalizedMessage that allows you to specify other properties that can be used within the error message. Example:
RuleFor(x => x.FirstName).WithMessage("Test {0}", x => x.StoreName)
...the same is also true if you use WithLocalizedMessage
There are additional overloads for WithMessage and WIthLocalizedMessage that allows you to specify other properties that can be used within the error message. Example:
RuleFor(x => x.FirstName).WithMessage("Test {0}", x => x.StoreName)
...the same is also true if you use WithLocalizedMessage