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

List of recommended navigation property bindings is incomplete.

    XMLWordPrintable

    Details

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

      Change 

      An entity set or a singleton SHOULD contain a navigation property binding for each navigation property of its entity type, including navigation properties defined on complex typed properties.

      to

      An entity set or a singleton SHOULD contain a navigation property binding for each non-containment navigation property that can be reached from the entity type through a sequence of type casts, complex properties, or containment navigation properties.

      Show
      Change  An  entity set  or a  singleton  SHOULD contain a navigation property binding for each  navigation property  of its entity type, including navigation properties defined on complex typed properties. to An  entity set  or a  singleton  SHOULD contain a navigation property binding for each non-containment navigation property that can be reached from the entity type through a sequence of type casts, complex properties, or containment navigation properties.
    • Resolution:
      Show
      https://github.com/oasis-tcs/odata-specs/pull/71

      Description

      Section 13.4 Navigation Property Binding 
      lists the cases when a navigation property binding should be provided:

      An entity set or a singleton SHOULD contain a navigation property binding for each navigation property of its entity type, including navigation properties defined on complex typed properties.

      It does not state that a navigation property binding should also be provided for navigation properties reached through a chain of type casts, complex properties, or containment navigation properties.

      Section 13.4.1 does explain what are legal Paths but the section 13.4 seems to limit the need to declare the binding it to navigation properties of only the type of the entity set or singleton. 

        Attachments

          Activity

            People

            • Assignee:
              heiko.theissen Heiko Theissen
              Reporter:
              chrispre Christof Sprenger
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: