Skip to content

Commit

Permalink
Bugfix validator so next links are followed the correct number of tim…
Browse files Browse the repository at this point in the history
…es (#1318)

* Bugfix for validator so that next links are now followed check_next_link times instaed of a maximum of two times.

* reset openapi.json to the version with the olderdependancies

* Readded the multistage variable.
  • Loading branch information
JPBergsma authored Sep 1, 2022
1 parent fdb948d commit c43fbce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimade/validator/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1338,11 +1338,11 @@ def _test_page_limit(
f"Error when testing pagination: the response from `links->next` {next_link!r} failed the previous test."
)

check_next_link = bool(check_next_link - 1)
check_next_link = check_next_link - 1
self._test_page_limit(
next_response,
check_next_link=check_next_link,
multistage=check_next_link,
multistage=bool(check_next_link),
previous_links=previous_links,
)

Expand Down

0 comments on commit c43fbce

Please sign in to comment.