For example,
RuleFor(q => q.Name).NotNull().WithMessage("Name is required");
should, in my opinion, set the IsRequired property. This is important to me because I use that property to see if I should add an asterisk to a field when auto-generating it.
Thanks,
Ryan
Comments: samquest, FluentValidation does not provide a ModelMetadata provider - this is out of scope of the project. This is an old issue that won't be re-opened. Thanks.
RuleFor(q => q.Name).NotNull().WithMessage("Name is required");
should, in my opinion, set the IsRequired property. This is important to me because I use that property to see if I should add an asterisk to a field when auto-generating it.
Thanks,
Ryan
Comments: samquest, FluentValidation does not provide a ModelMetadata provider - this is out of scope of the project. This is an old issue that won't be re-opened. Thanks.