Skip to content

Commit dd29907

Browse files
committed
Fix CursorPagination parameter schema type
The CursorPagination's cursor query parameter expects a string and not an integer. Fixes #7691
1 parent 19655ed commit dd29907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/pagination.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ def get_schema_operation_parameters(self, view):
958958
'in': 'query',
959959
'description': force_str(self.cursor_query_description),
960960
'schema': {
961-
'type': 'integer',
961+
'type': 'string',
962962
},
963963
}
964964
]

0 commit comments

Comments
 (0)