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

Paginator Inspectors not used for swagger_auto_schema responses #498

Open
PaulWay opened this issue Nov 22, 2019 · 1 comment
Open

Paginator Inspectors not used for swagger_auto_schema responses #498

PaulWay opened this issue Nov 22, 2019 · 1 comment

Comments

@PaulWay
Copy link
Contributor

PaulWay commented Nov 22, 2019

I have a view with this definition:

    @swagger_auto_schema(
        paginator_inspectors=[OurCustomResponsePaginatorInspector],
        responses={200: AllRuleRatingsSerializer(many=True)},
    )
    @action(detail=False)
    def all_ratings(self, request, format=None):
        ...

Our custom response paginator inspector does not get called to convert the schema from the responses' serializer into a paginated schema.

@PaulWay
Copy link
Contributor Author

PaulWay commented Nov 24, 2019

I've created #499 as a fix for this problem.

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

1 participant