Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Fix issue due to page_query_param not being a string (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb authored May 26, 2022
1 parent 61c3567 commit a76a6de
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ jobs:
- name: Start API, ingest and index test data
run: just init

- name: Smoke test ReDoc site
run: |
curl --fail 'http://localhost:8000/v1/?format=openapi'
- name: Run API tests
run: just api-test

Expand Down
8 changes: 8 additions & 0 deletions api/catalog/custom_auto_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@


class CustomAutoSchema(SwaggerAutoSchema):
def get_pagination_parameters(self):
"""
Since the pagination params are a part of the ``MediaSearchRequestSerializer``,
they need not be added again as pagination params.
"""

return []

def get_operation(self, operation_keys=None):
operation_keys = operation_keys or self.operation_keys

Expand Down

0 comments on commit a76a6de

Please sign in to comment.