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

          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?

            People

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

              Dates

              • Created:
                Updated:
                Resolved: