[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [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)
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]