Quantcast
Channel: Fluent Validation for .NET
Viewing all articles
Browse latest Browse all 1917

Commented Issue: FluentValidationModelMetadataProvider not setting 'IsRequired' property in ModelMetadata when I set something as NotNull [7054]

$
0
0
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.

Viewing all articles
Browse latest Browse all 1917

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>