oasis-tcs / odata-abnf

OASIS OData TC: Supporting an ABNF for OData URLs, headers, and literal data values
https://github.com/oasis-tcs/odata-abnf
Other
11 stars 5 forks source link

$top and $skip with expressions #97

Open HeikoTheissen opened 1 year ago

HeikoTheissen commented 1 year ago

Allow $top and $skip with "collection expressions" defined like here: https://github.com/oasis-tcs/odata-abnf/blob/c7002111720cc456fc1512ebb869528c220327f8/abnf/odata-aggregation-abnf.txt#L188-L189

Employees?$top=Age

would not be allowed, because Age cannot be evaluated on a collection of Employees. But

Managers?$expand=Employees($top=$it/Age)

would be allowed, since $it/Age is the age of one instance of Managers.