From c8dfaaca64ac90f57cffb6c4d1633f476c933df7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Heiko=20Thei=C3=9Fen?= Date: Mon, 24 Jun 2024 14:10:29 +0200 Subject: [PATCH] `$top` and `$skip` are numbers --- docs/odata-url-conventions/odata-url-conventions.html | 2 +- docs/odata-url-conventions/odata-url-conventions.md | 3 ++- odata-url-conventions/4 Resource Path.md | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/odata-url-conventions/odata-url-conventions.html b/docs/odata-url-conventions/odata-url-conventions.html index eb68ddd8..df65e9ee 100644 --- a/docs/odata-url-conventions/odata-url-conventions.html +++ b/docs/odata-url-conventions/odata-url-conventions.html @@ -1024,7 +1024,7 @@

OData-JSON, section 18, and in the resource path the parentheses after the function name MUST be omitted and the /$query segment MAY be omitted.

Example 52: An employee’s top 10 leave requests for the next two weeks pending their manager’s approval. Compare this with example 30.

diff --git a/docs/odata-url-conventions/odata-url-conventions.md b/docs/odata-url-conventions/odata-url-conventions.md index a014a893..d5d9e934 100644 --- a/docs/odata-url-conventions/odata-url-conventions.md +++ b/docs/odata-url-conventions/odata-url-conventions.md @@ -1531,7 +1531,8 @@ GET http://host/service/People? With `Content-Type: application/json` query options and function parameters are encoded in a request body that represents a JSON object. Its members include the individual query options. Their name MUST have the `$` prefix and their -value MUST be given as a string or a number, as appropriate. +value MUST be given as a string, except for `$top` and `$skip` where it MUST be +a number. Members of the JSON object also include parameters if the resource path is a function invocation or function import. In this case diff --git a/odata-url-conventions/4 Resource Path.md b/odata-url-conventions/4 Resource Path.md index 94ab377f..c549195d 100644 --- a/odata-url-conventions/4 Resource Path.md +++ b/odata-url-conventions/4 Resource Path.md @@ -1076,7 +1076,8 @@ GET http://host/service/People? With `Content-Type: application/json` query options and function parameters are encoded in a request body that represents a JSON object. Its members include the individual query options. Their name MUST have the `$` prefix and their -value MUST be given as a string or a number, as appropriate. +value MUST be given as a string, except for `$top` and `$skip` where it MUST be +a number. Members of the JSON object also include parameters if the resource path is a function invocation or function import. In this case