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

Commented Unassigned: DisplayNameAttribute ignored in Web API 2 validation errors [1526]

$
0
0
The following returns a model state with TerriblePropertyName is required instead of GoodName is required. This is different from MVC. Using Web API 2.

```
[DisplayName("GoodName")]
[Required]
public string TerriblePropertyName { get; set; }
```
Comments: This is not the same as #744, that is using the DisplayAttribute, this one is using the DisplayNameAttribute. They are two different attributes. Thanks.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



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