Closed
Description
Creating an OpenAPI for a project using https://github.com/tfranzel/drf-spectacular together with rest_framework.pagination.CursorPagination
raises the following warning:
OpenApiExample could not be paginated because <class 'rest_framework.pagination.CursorPagination'> either has an unknown schema structure or the individual pagination fields did not provide example values themselves. Using the plain example value as fallback.
It would be nice if some examples could be added to this code if it is possible to avoid this nasty warning:
django-rest-framework/rest_framework/pagination.py
Lines 894 to 908 in d507cd8
Metadata
Metadata
Assignees
Labels
No labels