Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
(Java) V4 4.2.0, (Java) V4 4.3.0
-
None
Description
The @odata.type annotation is incorrecty serialized for primitive types. the current behavior has this output: ...@odata.type":"Int32" but should look like this: ...@odata.type":"#Int32"
Here the specfication part:
4.5.3 Annotation odata.type
The odata.type annotation specifies the type of a JSON object or name/value pair. Its value is a URI that identifies the type of the property or object. For built-in primitive types the value is the unqualified name of the primitive type, specified as a URI fragment.
Example:
{
"@odata.context": "http://host/service/$metadata#Customers/$entity",
"@odata.type": "#Model.VipCustomer",
"ID": 2,
"DynamicLimit": "INF",
"DynamicLimit@odata.type": "#Double",
...
}