We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 825af4b commit 34b6410Copy full SHA for 34b6410
src/drf_yasg/inspectors/view.py
@@ -265,10 +265,13 @@ def get_response_schemas(self, response_serializers):
265
else:
266
serializer = force_serializer_instance(serializer)
267
schema = self.serializer_to_schema(serializer)
268
-
+
269
+ if self.has_list_response():
270
+ schema = openapi.Schema(type=openapi.TYPE_ARRAY, items=schema)
271
272
if self.should_page():
273
schema = self.get_paginated_response(schema) or schema
274
275
response = openapi.Response(
276
description='',
277
schema=schema,
0 commit comments