mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 00:19:53 +03:00
Adapted test case for paginated response schema
This commit is contained in:
parent
25e09ba14b
commit
edc75e91b0
|
@ -922,10 +922,14 @@ class CursorPaginationTestsMixin:
|
||||||
'next': {
|
'next': {
|
||||||
'type': 'string',
|
'type': 'string',
|
||||||
'nullable': True,
|
'nullable': True,
|
||||||
|
'format': 'uri',
|
||||||
|
'example': 'http://api.example.org/accounts/?cursor=cD00ODY%3D"'
|
||||||
},
|
},
|
||||||
'previous': {
|
'previous': {
|
||||||
'type': 'string',
|
'type': 'string',
|
||||||
'nullable': True,
|
'nullable': True,
|
||||||
|
'format': 'uri',
|
||||||
|
'example': 'http://api.example.org/accounts/?cursor=cj0xJnA9NDg3'
|
||||||
},
|
},
|
||||||
'results': unpaginated_schema,
|
'results': unpaginated_schema,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user