From 97ef01310d5a5f457be55a264da0ac2120a34c5d Mon Sep 17 00:00:00 2001 From: Jameel Al-Aziz Date: Tue, 2 Feb 2021 21:13:03 -0800 Subject: [PATCH] Fix CursorPagination parameter schema type The CursorPagination's cursor query parameter expects a string and not an integer. Fixes #7691 --- rest_framework/pagination.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/pagination.py b/rest_framework/pagination.py index dc120d8e8..e815d8d5c 100644 --- a/rest_framework/pagination.py +++ b/rest_framework/pagination.py @@ -961,7 +961,7 @@ class CursorPagination(BasePagination): 'in': 'query', 'description': force_str(self.cursor_query_description), 'schema': { - 'type': 'integer', + 'type': 'string', }, } ]