You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Christian Amend (JIRA)" <ji...@apache.org> on 2016/10/18 14:01:07 UTC
[jira] [Resolved] (OLINGO-1033) V4: @odata.type annotation
incorrect for primitive types
[ https://issues.apache.org/jira/browse/OLINGO-1033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Amend resolved OLINGO-1033.
-------------------------------------
Resolution: Fixed
Fixed with commit: https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=commit;h=5255c336ebde38493337bd6761b49a80654a3289
> V4: @odata.type annotation incorrect for primitive types
> --------------------------------------------------------
>
> Key: OLINGO-1033
> URL: https://issues.apache.org/jira/browse/OLINGO-1033
> Project: Olingo
> Issue Type: Bug
> Components: odata4-client, odata4-server
> Affects Versions: (Java) V4 4.2.0, (Java) V4 4.3.0
> Reporter: Christian Amend
> Assignee: Christian Amend
> Fix For: (Java) V4 4.4.0
>
>
> 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",
> ...
> }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)