Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "limit" Query Parameter Allowed Values #31

Open
flycoolman opened this issue Dec 24, 2024 · 1 comment
Open

The "limit" Query Parameter Allowed Values #31

flycoolman opened this issue Dec 24, 2024 · 1 comment

Comments

@flycoolman
Copy link
Contributor

(2) p 9, sec 3.1.7. The "limit" Query Parameter
Allowed Values
The allowed values are unsigned integers. Note that passing zero
(0) as limit, SHOULD quickly return the empty set. This can be
useful to test if a query is valid without stressing the
datastore.
I'm not particularly keen on the text regarding passing 0 as the limit
being used to check whether the query is valid. This is feels like a
somewhat random capability check happening during the operation. It
probably means that a server would need to special case the handling for
the 0 limit to return a valid response but internally bypass the regular
query operation. Instead, I think that this text should probably make
the lower limit 1.

@billwuqin
Copy link
Contributor

zero limit for debugging, should we exclude zero from allowed value range for limit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants