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:35:00 UTC
[jira] [Created] (OLINGO-1485) OData V4: Server side support for
instance annotations
Ramya Vasanth created OLINGO-1485:
-------------------------------------
Summary: 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
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)