Skip to content

Commit

Permalink
Implement feature
Browse files Browse the repository at this point in the history
  • Loading branch information
thepieterdc authored and nicolaiarocci committed Mar 11, 2023
1 parent 377e48c commit 0f56334
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eve/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,10 @@ def parse_request(resource):

# TODO should probably return a 400 if 'max_results' < 1 or
# non-numeric
if r.max_results > config.PAGINATION_LIMIT:
r.max_results = config.PAGINATION_LIMIT
# Fetch the custom pagination limit from the schema, default to the global one.
pagination_limit = settings.get("pagination_limit") or config.PAGINATION_LIMIT
if r.max_results > pagination_limit:
r.max_results = pagination_limit

def etag_parse(challenge):
if challenge in headers:
Expand Down

0 comments on commit 0f56334

Please sign in to comment.