Skip to content

Conversation

@norbertschuler
Copy link
Contributor

Fix #8686

Added missing examples for CursorPagination class to disable warnings in https://github.com/tfranzel/drf-spectacular and make it consistent with other pagination classes.

Fix encode#8686

Added missing examples for CursorPagination class to disable warnings in https://github.com/tfranzel/drf-spectacular and make it consistent with other pagination classes.
@lovelydinosaur
Copy link
Contributor

Thanks for this! Yup seems good.

Looks like we've got a test case that checks the schema output, which would need fixing up...

https://github.com/encode/django-rest-framework/actions/runs/3207548339/jobs/5262424890

Let me know if you need a pointer in getting that sorted.

@norbertschuler
Copy link
Contributor Author

Looks like we've got a test case that checks the schema output, which would need fixing up...

Sorry for not having checked that in first place. I have no environment set up to run the test suite rather relying on your GitHub actions. I fixed the test now.

@lovelydinosaur lovelydinosaur merged commit 911b207 into encode:master Oct 11, 2022
@lovelydinosaur
Copy link
Contributor

Great, thanks!

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

Successfully merging this pull request may close these issues.

Nasty warning using CursorPagination with drf-spectacular

2 participants