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

Edited Issue: FromUri binding return empty error messages [1493]

$
0
0
I'm using the FromUri attribute to bind query string parameters to a custom model in a Web Api application.
There are 2 scenarios where I found the error message returned by the ApiController's ModelState is empty.
This happens when I enter the value '#' for a nullable integer and when I enter 2 identical parameters into the query string.
I'm expecting a meaningful message to be returned e.g. "The value '#' is not valid for NullableInteger" and "Duplicate entries in query string".

Viewing all articles
Browse latest Browse all 7215

Trending Articles



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