django-rest-framework/rest_framework/schemas
Reupen Shah b45ff07294 Use an array type for list view response schemas
This is the first part of #6846.

Previously, the response schema for list views was an object representing a single item. However, list views return a list of items, and hence it should be an array.

Further work will need to be done to support how pagination classes modify list responses.

There should be no change for views not determined to be list views.
2019-08-07 20:40:22 +02:00
..
__init__.py Added OpenAPI Schema Generation. (#6532) 2019-05-13 16:07:03 +02:00
coreapi.py Move determine_path_prefix() logic into CoreAPI module. 2019-07-24 11:13:30 +02:00
generators.py Move determine_path_prefix() logic into CoreAPI module. 2019-07-24 11:13:30 +02:00
inspectors.py Added OpenAPI Schema Generation. (#6532) 2019-05-13 16:07:03 +02:00
openapi.py Use an array type for list view response schemas 2019-08-07 20:40:22 +02:00
utils.py Added OpenAPI Schema Generation. (#6532) 2019-05-13 16:07:03 +02:00
views.py Added OpenAPI Schema Generation. (#6532) 2019-05-13 16:07:03 +02:00