You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Ramya Vasanth (Jira)" <ji...@apache.org> on 2020/10/09 08:37:00 UTC
[jira] [Commented] (OLINGO-1485) OData V4: Server side support for
instance annotations
[ https://issues.apache.org/jira/browse/OLINGO-1485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17210725#comment-17210725 ]
Ramya Vasanth commented on OLINGO-1485:
---------------------------------------
This feature is added as part of the commit [https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=commit;h=6f8b90bccdbd18a2914f2351d799b860a498d797]
> 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)