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.JsonPatch.Test | ||
| Microsoft.AspNet.Mvc.Common.Test | ||
| Microsoft.AspNet.Mvc.Core.Test | ||
| Microsoft.AspNet.Mvc.FunctionalTests | ||
| Microsoft.AspNet.Mvc.ModelBinding.Test | ||
| Microsoft.AspNet.Mvc.Razor.Host.Test | ||
| Microsoft.AspNet.Mvc.Razor.Test | ||
| Microsoft.AspNet.Mvc.TagHelpers.Test | ||
| Microsoft.AspNet.Mvc.Test | ||
| Microsoft.AspNet.Mvc.TestCommon | ||
| Microsoft.AspNet.Mvc.WebApiCompatShimTest | ||
| Microsoft.AspNet.Mvc.Xml.Test | ||
| WebSites | ||