Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Issue: UpForGrabs: Web Api ModelState validation is ignoring the DisplayAttribute [744]

$
0
0
Given a model with these data annotations:

public class Example
{
[Required]
[Display(Name = "Activity response")]
public string ActivityResponse { get; set; }
}

I would expect the model state error message to be "The Activity response field is required." Instead it is "The ActivityResponse field is required."


[kichalla] __Attached__ a katana selfhost repro.
Comments: @brheal: Just to clarify, this bug is about "DisplayAttribute" and its fixed for 5.1 release...are you referring to "Display" or "DisplayName" attribute?

Viewing all articles
Browse latest Browse all 7215

Trending Articles



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