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