The DataAnnotationsMetadataProvider was setting the bool? IsRequired, all of the time instead of only setting it to true when we found a RequiredAttribute. So we never actually executed the fallback logic here. Found this while working on removing some reflection code from the validator, and wanted to split it out because it's simple. |
||
|---|---|---|
| .. | ||
| Microsoft.AspNet.Mvc.TestCommon.xproj | ||
| TestFileInfo.cs | ||
| TestFileProvider.cs | ||
| TestFileTrigger.cs | ||
| TestModelMetadataProvider.cs | ||
| TestModelValidatorProvider.cs | ||
| project.json | ||