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

Consider how to specify an included namespace as a default in JSON CSDL

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: V4.01_WD01
    • Component/s: CSDL JSON
    • Labels:
      None
    • Environment:

      Applied

    • Proposal:
      Hide

      Embed the corresponding annotation within the JSON object representing a schema or reference to an included schema:

      {
      "$Version": "4.01",
      "$EntityContainer": "ODataDemo.DemoService",
      "$Reference": {
      "http://docs.oasis-open.org/odata/odata-vocabularies/v4.0/vocabularies/Org.OData.Core.V1.json": {
      "$Include": [

      { "$Namespace":"Org.OData.Core.V1.", "$Alias": "Core", "@Org.OData.Core.V1.DefaultNamespace": true }

      ]
      }
      },
      "ODataDemo.":

      { "$kind": "Schema", "@Org.OData.Core.V1.DefaultNamespace": true }

      ,

      Show
      Embed the corresponding annotation within the JSON object representing a schema or reference to an included schema: { "$Version": "4.01", "$EntityContainer": "ODataDemo.DemoService", "$Reference": { "http://docs.oasis-open.org/odata/odata-vocabularies/v4.0/vocabularies/Org.OData.Core.V1.json": { "$Include": [ { "$Namespace":"Org.OData.Core.V1.", "$Alias": "Core", "@Org.OData.Core.V1.DefaultNamespace": true } ] } }, "ODataDemo.": { "$kind": "Schema", "@Org.OData.Core.V1.DefaultNamespace": true } ,
    • Resolution:
      Show
      https://www.oasis-open.org/committees/download.php/60253/odata-csdl-json-v4.01-wd01-2017-03-10.docx

      Description

      In ODATA-812 we added the concept of a default namespace, and allowed annotations from these default namespaces to be represented without namespace qualification. We said that the service defined certain namespaces as default in $metadata by annotating the <Include> element.

      While <Include> is not currently an annotatable element, there doesn't seem to be any problem making it annotatable. However, we have to consider how we would annotate this element in JSON CSDL.

        Attachments

          Activity

            People

            • Assignee:
              mikep Michael Pizzo
              Reporter:
              mikep Michael Pizzo
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: