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

revise limit semantics #335

Merged
merged 2 commits into from
Oct 11, 2022

Conversation

philvarner
Copy link
Collaborator

Related Issue(s):

Proposed Changes:

  1. limit semantics now match OAFeat. The limit parameter must be less than the maximum value advertised in the service description and the server must not return more items than the limit parameter.

PR Checklist:

  • This PR has no breaking changes.
  • This PR does not make any changes to the core spec in the stac-spec directory (these are included as a subtree and should be updated directly in radiantearth/stac-spec)
  • I have added my changes to the CHANGELOG or a CHANGELOG entry is not required.

item-search/README.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@m-mohr m-mohr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A slight mistake in wording, otherwise LGTM.

item-search/README.md Outdated Show resolved Hide resolved
item-search/README.md Outdated Show resolved Hide resolved
@philvarner philvarner requested a review from m-mohr October 10, 2022 22:43
Copy link
Collaborator

@m-mohr m-mohr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. OAFeat also says:

A 400 will be returned in the following situations: If query parameter limit is not an integer or not between minimum and maximum;

Not sure whether we should cover this here though. (Also not a big fan of returning a 400 in case you are outside of the min/max bounds.)

@philvarner philvarner merged commit b3247b8 into radiantearth:main Oct 11, 2022
@philvarner philvarner deleted the pv/limit-clarification branch October 11, 2022 13:24
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

Successfully merging this pull request may close these issues.

2 participants