parent
f8e9fd6327
commit
e182ab65ea
|
|
@ -71,8 +71,8 @@ class DjangoRestResponsePagination(PaginatorInspector):
|
||||||
type=openapi.TYPE_OBJECT,
|
type=openapi.TYPE_OBJECT,
|
||||||
properties=OrderedDict((
|
properties=OrderedDict((
|
||||||
('count', openapi.Schema(type=openapi.TYPE_INTEGER) if has_count else None),
|
('count', openapi.Schema(type=openapi.TYPE_INTEGER) if has_count else None),
|
||||||
('next', openapi.Schema(type=openapi.TYPE_STRING, format=openapi.FORMAT_URI)),
|
('next', openapi.Schema(type=openapi.TYPE_STRING, format=openapi.FORMAT_URI, x_nullable=True)),
|
||||||
('previous', openapi.Schema(type=openapi.TYPE_STRING, format=openapi.FORMAT_URI)),
|
('previous', openapi.Schema(type=openapi.TYPE_STRING, format=openapi.FORMAT_URI, x_nullable=True)),
|
||||||
('results', response_schema),
|
('results', response_schema),
|
||||||
)),
|
)),
|
||||||
required=['results']
|
required=['results']
|
||||||
|
|
|
||||||
|
|
@ -75,9 +75,11 @@ paths:
|
||||||
next:
|
next:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: uri
|
||||||
|
x-nullable: true
|
||||||
previous:
|
previous:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: uri
|
||||||
|
x-nullable: true
|
||||||
results:
|
results:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue