File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -239,6 +239,7 @@ def get_paginated_response(self, data):
239
239
def get_paginated_response_schema (self , schema ):
240
240
return {
241
241
'type' : 'object' ,
242
+ 'required' : ['count' , 'results' ],
242
243
'properties' : {
243
244
'count' : {
244
245
'type' : 'integer' ,
@@ -411,6 +412,7 @@ def get_paginated_response(self, data):
411
412
def get_paginated_response_schema (self , schema ):
412
413
return {
413
414
'type' : 'object' ,
415
+ 'required' : ['count' , 'results' ],
414
416
'properties' : {
415
417
'count' : {
416
418
'type' : 'integer' ,
@@ -906,6 +908,7 @@ def get_paginated_response(self, data):
906
908
def get_paginated_response_schema (self , schema ):
907
909
return {
908
910
'type' : 'object' ,
911
+ 'required' : ['results' ],
909
912
'properties' : {
910
913
'next' : {
911
914
'type' : 'string' ,
Original file line number Diff line number Diff line change @@ -274,6 +274,7 @@ def test_get_paginated_response_schema(self):
274
274
275
275
assert self .pagination .get_paginated_response_schema (unpaginated_schema ) == {
276
276
'type' : 'object' ,
277
+ 'required' : ['count' , 'results' ],
277
278
'properties' : {
278
279
'count' : {
279
280
'type' : 'integer' ,
@@ -585,6 +586,7 @@ def test_get_paginated_response_schema(self):
585
586
586
587
assert self .pagination .get_paginated_response_schema (unpaginated_schema ) == {
587
588
'type' : 'object' ,
589
+ 'required' : ['count' , 'results' ],
588
590
'properties' : {
589
591
'count' : {
590
592
'type' : 'integer' ,
@@ -937,6 +939,7 @@ def test_get_paginated_response_schema(self):
937
939
938
940
assert self .pagination .get_paginated_response_schema (unpaginated_schema ) == {
939
941
'type' : 'object' ,
942
+ 'required' : ['results' ],
940
943
'properties' : {
941
944
'next' : {
942
945
'type' : 'string' ,
You can’t perform that action at this time.
0 commit comments