From f9dcfa03919f2c6dc5a82b74b6f1251588b5c351 Mon Sep 17 00:00:00 2001 From: Ralf Handl Date: Fri, 27 Sep 2024 10:11:40 +0200 Subject: [PATCH] No duplicate nested query options --- docs/odata-url-conventions/odata-url-conventions.html | 2 +- docs/odata-url-conventions/odata-url-conventions.md | 2 ++ odata-url-conventions/5 Query Options.md | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/odata-url-conventions/odata-url-conventions.html b/docs/odata-url-conventions/odata-url-conventions.html index a18a9242..87a3b0da 100644 --- a/docs/odata-url-conventions/odata-url-conventions.html +++ b/docs/odata-url-conventions/odata-url-conventions.html @@ -2259,7 +2259,7 @@

$compute, $select, $expand, and $levels for all navigation properties, plus $filter, $orderby, $skip, $top, $count, and $search for collection-valued navigation properties.

+

Query options can be applied to an expanded navigation property by appending a semicolon-separated list of query options, enclosed in parentheses, to the navigation property name. Allowed system query options are $compute, $select, $expand, and $levels for all navigation properties, plus $filter, $orderby, $skip, $top, $count, and $search for collection-valued navigation properties. The same system query option, irrespective of casing or whether or not it is prefixed with a $, MUST NOT be specified more than once for a collection-valued navigation property.

Example 124: all categories and for each category all related products with a discontinued date equal to null

http://host/service/Categories?$expand=Products($filter=DiscontinuedDate eq null)
diff --git a/docs/odata-url-conventions/odata-url-conventions.md b/docs/odata-url-conventions/odata-url-conventions.md index 96ce04c2..cc55ff04 100644 --- a/docs/odata-url-conventions/odata-url-conventions.md +++ b/docs/odata-url-conventions/odata-url-conventions.md @@ -3634,6 +3634,8 @@ Allowed system query options are [`$count`](#SystemQueryOptioncount), and [`$search`](#SystemQueryOptionsearch) for collection-valued navigation properties. +The same system query option, irrespective of casing or whether or not it is prefixed with a `$`, +MUST NOT be specified more than once for a collection-valued navigation property. ::: example Example 124: all categories and for each category all related products diff --git a/odata-url-conventions/5 Query Options.md b/odata-url-conventions/5 Query Options.md index 42354e58..55027bd9 100644 --- a/odata-url-conventions/5 Query Options.md +++ b/odata-url-conventions/5 Query Options.md @@ -2061,6 +2061,8 @@ Allowed system query options are [`$count`](#SystemQueryOptioncount), and [`$search`](#SystemQueryOptionsearch) for collection-valued navigation properties. +The same system query option, irrespective of casing or whether or not it is prefixed with a `$`, +MUST NOT be specified more than once for a collection-valued navigation property. ::: example Example ##ex: all categories and for each category all related products