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: Sorry I just realized I'm using 2.0 Web API and it's 2.1 Web API that's in 5.1. I'll try the RC and let you know the outcome. 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>