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

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

      Applied

    • 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 } ,
    • Show
      https://www.oasis-open.org/committees/download.php/60253/odata-csdl-json-v4.01-wd01-2017-03-10.docx

      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.

            Assignee:
            Michael Pizzo (Inactive)
            Reporter:
            Michael Pizzo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: