I'm tring to build a validation rule using FluentValidation lib.
When I use the first part of the code bellows, it works as expected; but when I use the second part, only the first validation is executed, ignoring the last two validation rules.
The second part is not supposed to work? Am I doing something wrong?
// first part -- it works
RuleFor(c => c.Field).RequiredField().WithMessage(CustomMsg1);
RuleFor(c => c.Field).ValidateField().WithMessage(CustomMsg2);
RuleFor(c => c.Field).IsNumeric().WithMessage(CustomMsg3);
// second part -- validates only the first rule
RuleFor(c => c.Field)
.RequiredField().WithMessage(CustomMsg1)
.ValidateField().WithMessage(CustomMsg2)
.IsNumeric().WithMessage(CustomMsg3);