Skip to content

LimitOffsetPagination not working over coreapi in v3.6.3 #5144

Closed
@khakulov

Description

@khakulov

Steps to reproduce

following coreapi call to my book resource with LimitOffsetPagination

client.action(document, ['book', 'list'], params={
    'offset': 0,
    'limit': 20,
})

Expected behavior

in v3.6.2 works well:

{
    "count": 123,
    "next": "https://.../api/book/?offset=20&limit=20",
    "previous": "https://.../api/book/?offset=0&limit=20",
    "results": ["..."]
}

Actual behavior

in v3.6.3 it causes an exception:

ParameterError: {'offset': 'Unknown parameter.', 'limit': 'Unknown parameter.'}

related to pr #4998 which introduced this breaking change (bug).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions