Skip to content

Commit b3beb15

Browse files
authored
Fix CursorPagination parameter schema type (#7708)
The CursorPagination's cursor query parameter expects a string and not an integer. Fixes #7691
1 parent 7a84dc7 commit b3beb15

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
@@ -961,7 +961,7 @@ def get_schema_operation_parameters(self, view):
961961
'in': 'query',
962962
'description': force_str(self.cursor_query_description),
963963
'schema': {
964-
'type': 'integer',
964+
'type': 'string',
965965
},
966966
}
967967
]

0 commit comments

Comments
 (0)