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

Metadata URL for nested objects can be relative to metadata URL of enclosing object

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_CSD01
    • Fix Version/s: V4.0_CSD02
    • Component/s: JSON Format
    • Labels:
      None
    • Environment:

      [Applied]

      Description

      In odata-422, we define a metadataurl representation for references, as well as links, deleted links, and deleted entities. This replaced "odata.kind" and established the metadataurl as the single place to look to understand what a particular object represented.
      However, understanding that a particular JSON object represents a reference, link, deleted link, or deleted entity is not dependent upon the base metadataurl of the service. these are defined by odata.

      Thus, the metadata urls should not depend on the metadataurl of the service, but should be defined relative to a (virtual) odata url. for example:

      {metadata-url}#$ref => odata:#ref {metadata-url}

      #@deletedEntity => odata:#deletedEntity

      {metadata-url}#@link => odata:#link{metadata-url}

      #@deletedLink => odata:#deletedLink

        Attachments

          Activity

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              mikep Michael Pizzo (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: