Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-838

Allow inclusion of "untyped JSON" into JSON requests and responses

    XMLWordPrintable

    Details

    • Proposal:
      Hide

      Allow JSON payloads to contain "untyped JSON" in addition to OData declared and open properties.

      Add annotation for structured types that announce the potential presence of untyped JSON, either as a tagging term or by explicitly listing the names of the "untyped JSON" properties:

      <Annotation Term="Xxx.ContainsUntypedJSON" />

      Or

      <Annotation Term="Xxx.ContainsUntypedJSON">
      <Record>
      <PropertyValue Property="Properties">
      <Collection>
      <String>opaqueJsonProperty</String>
      <String>Another-untyped/JSON;Property{with:a#weird name</String>
      </PropertyValue>
      </Collection>
      </Record>
      </Annotation>

      Allow clients to tell whether they are willing to receive "untyped JSON" via a new preference odata.allow-untyped-json.

      Show
      Allow JSON payloads to contain "untyped JSON" in addition to OData declared and open properties. Add annotation for structured types that announce the potential presence of untyped JSON, either as a tagging term or by explicitly listing the names of the "untyped JSON" properties: <Annotation Term="Xxx.ContainsUntypedJSON" /> Or <Annotation Term="Xxx.ContainsUntypedJSON"> <Record> <PropertyValue Property="Properties"> <Collection> <String>opaqueJsonProperty</String> <String>Another-untyped/JSON;Property{with:a#weird name</String> </PropertyValue> </Collection> </Record> </Annotation> Allow clients to tell whether they are willing to receive "untyped JSON" via a new preference odata.allow-untyped-json.
    • Resolution:
      Show
      NO ACTION: https://www.oasis-open.org/apps/org/workgroup/odata/download.php/57676/latest/odata-meeting-122_on-20160302_03-F2F_minutes.html

      Description

      JSON allows more flexibility than OData, e.g. arrays that mix primitive values, objects, and other arrays, or property names that aren't SimpleIdentiifers.

      Some extension scenarios for OData services require adding JSON data to requests and responses that cannot be modeled with OData means.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              handl Ralf Handl
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: