Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1485

OData V4: Server side support for instance annotations

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • (Java) V4 4.7.1
    • None
    • odata4-server
    • None

    Description

      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

      {
      	"@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
      }
      

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            ramyav Ramya Vasanth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: