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. |
||
|---|---|---|
| .. | ||
| Binders | ||
| Metadata | ||
| Properties | ||
| Utils | ||
| Validation | ||
| ValueProviders | ||
| BindAttributeTest.cs | ||
| Microsoft.AspNet.Mvc.ModelBinding.Test.xproj | ||
| Resources.resx | ||
| SimpleTypeExcludeFilterTest.cs | ||
| TestResources.cs | ||
| TestValueProvider.cs | ||
| project.json | ||