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

Edited 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.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



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