You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…h odata.type annotated (#2694)
* Fixes#2693: Does not work for reading value for untyped property with odata.type annotated
* Update src/Microsoft.OData.Core/ReaderValidationUtils.cs
Co-authored-by: John Gathogo <john.gathogo@microsoft.com>
* Add async test to verify the result
---------
Co-authored-by: John Gathogo <john.gathogo@microsoft.com>
If we post a request using
{
"name": "sam",
"gender": "Male",
"data@odata.type":"#UntypedApp.Models.Gender",
"data": "Male"
}
There's a type annotation for 'data'.
Expected behavior
Shoudl read it as 'Gender.Male' for 'Data' property.
** Actual behavior**
It's failed.
It's also failing if we specify a @odata.type for a single resource for 'Data'.
The text was updated successfully, but these errors were encountered: