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

Allow Type="Any" and Type="Collection(Any)" for NavigationProperty elements

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_WD01
    • Fix Version/s: V4.0_WD01
    • Component/s: CSDL XML
    • Labels:
      None
    • Environment:

      [Closed]

      Description

      We have encountered several situations where we know at design time that an entity will have an association to another entity (in the same or a different service), but we don't know the exact type of the related entity until run-time.

      One example are notifications about "events" for some entity the consumer is interested in. The "events" service will be stable over time and may notify about events on business entities that weren't even modeled at the time the "events" service was published.

      This is comparable to defining Named Resource Properties with the additional information that the named resource is guaranteed to be an OData entity or a collection of OData entities.

        Attachments

          Activity

          ralfhandl Ralf Handl created issue -
          Hide
          mikep Michael Pizzo (Inactive) added a comment -

          We have several issues around Any that we should consider together (perhaps at Face to Face).

          Does the fact that the navigation property is collection(Any) mean that the response may be entirely heterogeneous? What are the rules about accessing members in a filter, select, nested expand, etc; presumably a cast segment is required?

          Show
          mikep Michael Pizzo (Inactive) added a comment - We have several issues around Any that we should consider together (perhaps at Face to Face). Does the fact that the navigation property is collection(Any) mean that the response may be entirely heterogeneous? What are the rules about accessing members in a filter, select, nested expand, etc; presumably a cast segment is required?
          mikep Michael Pizzo (Inactive) made changes -
          Field Original Value New Value
          Resolution Closed as addressed by OData-198.
          Status New [ 10000 ] Closed [ 6 ]
          ralfhandl Ralf Handl made changes -
          Resolution Closed as addressed by OData-198. Close as problem is addressed by OData-16.

          Accepted: https://www.oasis-open.org/committees/download.php/48097/odata-meeting-23_on-20130130_31-F2F-minutes.html#odata-198
          ralfhandl Ralf Handl made changes -
          Assignee Ralf Handl [ ralfhandl ]
          ralfhandl Ralf Handl made changes -
          Environment [Proposed] [Closed]
          Status Closed [ 6 ] Open [ 1 ]
          ralfhandl Ralf Handl made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          ralfhandl Ralf Handl made changes -
          Status Resolved [ 5 ] Applied [ 10002 ]
          ralfhandl Ralf Handl made changes -
          Status Applied [ 10002 ] Closed [ 6 ]
          handl Ralf Handl made changes -
          Reporter Ralf Handl [ ralfhandl ] Ralf Handl [ handl ]
          handl Ralf Handl made changes -
          Assignee Ralf Handl [ ralfhandl ] Ralf Handl [ handl ]

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              handl Ralf Handl
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: