← Prev in month ← Prev in thread

[OASIS Issue Tracker] (ODATA-1026) Clarify when $it is required

From
OASIS Issues Tracker <>
Date
2017-01-17T16:58:10+00:00
ID
Thread
[OASIS Issue Tracker] (ODATA-1026) Clarify when $it is required
Matthew Borges created ODATA-1026:
-------------------------------------

             Summary: Clarify when $it is required
                 Key: ODATA-1026
                 URL: https://issues.oasis-open.org/browse/ODATA-1026
             Project: OASIS Open Data Protocol (OData) TC
          Issue Type: Improvement
          Components: OData URL Conventions
    Affects Versions: V4.0_OS
            Reporter: Matthew Borges
            Priority: Minor


The description of $it says it CAN be used in a number of cases (see section 5.1.11.4 in the URL conventions document) but it isn't specific about when $it MUST be used.  We should clarify when $it is required.  For example, my understanding is that both of these queries are equivalent (in which case the $it is not required):

http://host/service/Customers?$filter=Orders/any(d:d/Quantity ge Age)
vs.
http://host/service/Customers?$filter=Orders/any(d:d/Quantity ge $it/Age)

However, my understanding is that in the case below the $it is required:

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



--
This message was sent by Atlassian JIRA
(v6.2.2#6258)
← Prev in month ← Prev in thread