Discussed with Youssef that ODataError right now doesn't support custom error, so we will lose the modelstate's errors in odata error message.
However, ModelState errors are very common in real application to help caller to identify what's wrong with his parameter. We'd better to support it, otherwise user has to parse the modelstate by themselves to convert to ODataError.
Comments: Seems like we have a reasonable workaround, we haven't heard to the contrary in almost two months. If you disagree feel free to reopen and provide the reason why the workaround doesn't work for you.
However, ModelState errors are very common in real application to help caller to identify what's wrong with his parameter. We'd better to support it, otherwise user has to parse the modelstate by themselves to convert to ODataError.
Comments: Seems like we have a reasonable workaround, we haven't heard to the contrary in almost two months. If you disagree feel free to reopen and provide the reason why the workaround doesn't work for you.