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

OData-URL 5.1.1.15 does not explain example 106 in 5.1.1.14.4

    XMLWordPrintable

    Details

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

      Rephrase section 5.1.1.15:

      Properties and navigation properties of the structured type on which a common expression is evaluated can be used as operands or function parameters, as shown in the preceding examples.

      Add note to 5.1.1.14.6 that example could use $this/ShipTo/City, which would be equivalent and longer.

      Show
      Rephrase section 5.1.1.15: Properties and navigation properties of the structured type on which a common expression is evaluated can be used as operands or function parameters, as shown in the preceding examples. Add note to 5.1.1.14.6 that example could use $this/ShipTo/City , which would be equivalent and longer.
    • Resolution:
      Show
      https://github.com/oasis-tcs/odata-specs/pull/144

      Description

      Example 106 in OData-URL

      http://host/service/Customers?$expand=Orders($filter=$it/Address/City eq ShipTo/City)
      

      uses the navigation property ShipTo of the Orders navigation target. According to section 5.1.1.15, however, ShipTo should be equivalent to $it/ShipTo, a property of the addressed resource Customers:

      Properties and navigation properties of the entity type of the set of resources that are addressed by the request URL can be used as operands or function parameters, as shown in the preceding examples.

        Attachments

          Activity

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              heiko.theissen Heiko Theissen
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: