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

    • 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
    • Show
      https://github.com/oasis-tcs/odata-specs/pull/60

      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?

            Assignee:
            heiko.theissen
            Reporter:
            heiko.theissen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: