Skip to content

Paginator Inspectors not used for swagger_auto_schema responses #498

@PaulWay

Description

@PaulWay

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNo assigned version

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions