[ 
https://issues.apache.org/jira/browse/OLINGO-1485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ramya Vasanth resolved OLINGO-1485.
-----------------------------------
    Resolution: Fixed

> OData V4: Server side support for instance annotations
> ------------------------------------------------------
>
>                 Key: OLINGO-1485
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1485
>             Project: Olingo
>          Issue Type: New Feature
>          Components: odata4-server
>    Affects Versions: (Java) V4 4.7.1
>            Reporter: Ramya Vasanth
>            Priority: Major
>
> If the Entity includes instance annotations or the Properties of the entity 
> includes instance annotations, then olingo library serializer currently 
> cannot serialize this.
> The serializer should return a response like below..
> This has instance annotation on the entity and property
> {noformat}
> {
>       "@odata.context": "$metadata#ESAllPrim/$entity",
>       "@odata.metadataEtag": "W/\"metadataETag\"",
>       "@com.contoso.display.highlight":true,"
>         "@com.contoso.PersonalInfo.PhoneNumbers": 
> ["(203)555-1718","(203)555-1719"]
>       "PropertyInt16": 32767,
>       "PropertyString@com.contoso.display.style": {
>               "@odata.type": "#com.contoso.display.styleType",
>               "title": true,
>               "Order": 1
>       },
>       "PropertyString": "First Resource - positive values",
>       "PropertyBoolean": true,
>       "PropertyByte": 255,
>       "PropertySByte": 127,
>       "PropertyInt32": 2147483647
> }
> {noformat}
> The above payload should also be deserailized by olingo deserializer.
> Spec link - 
> [http://docs.oasis-open.org/odata/odata-json-format/v4.01/odata-json-format-v4.01.html#sec_InstanceAnnotations]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to