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

[OData-CSDL, example 64] annotating a navigation property or its addressed resource?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.01_OS
    • Fix Version/s: V4.01_ERRATA01
    • Component/s: CSDL JSON, CSDL XML
    • Labels:
      None
    • Proposal:
      Hide

      Extend example with a second line:

      Example 64: model path segment addressing an annotation on a navigation property vs. term cast addressing an annotation on the resource addressed by the navigation property

      …/Items@Core.Description
      …/Items/@Core.Description
      
      Show
      Extend example with a second line: Example 64: model path segment addressing an annotation on a navigation property vs. term cast addressing an annotation on the resource   addressed by the navigation property …/Items@Core.Description …/Items/@Core.Description
    • Resolution:
      Show
      https://github.com/oasis-tcs/odata-specs/pull/60

      Description

      OData-CSDL contains

      Example 64: model path addressing an annotation on a navigation property

      …/Items@Capabilities.InsertRestrictions/Insertable
      

      which claims to be

      addressing annotations on the navigation property itself

      But according to the capabilities vocabulary, this annotation applies only to entity sets and collections, not to navigation properties.

      However, external annotation targets that start with a container make no distinction between a navigation property and the resource addressed by it. Is the distinction between

      …/Items@Capabilities.InsertRestrictions/Insertable
      

      and

      …/Items/@Capabilities.InsertRestrictions/Insertable
      

      perhaps entirely artificial?

        Attachments

          Activity

            People

            • Assignee:
              heiko.theissen Heiko Theissen
              Reporter:
              heiko.theissen Heiko Theissen
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: