diff --git a/rest_framework/schemas/openapi.py b/rest_framework/schemas/openapi.py index 1df132ce3..cb5ea95a3 100644 --- a/rest_framework/schemas/openapi.py +++ b/rest_framework/schemas/openapi.py @@ -259,13 +259,7 @@ class AutoSchema(ViewInspector): 'items': {}, } if not isinstance(field.child, _UnvalidatedField): - map_field = self._map_field(field.child) - items = { - "type": map_field.get('type') - } - if 'format' in map_field: - items['format'] = map_field.get('format') - mapping['items'] = items + mapping['items'] = self._map_field(field.child) return mapping # DateField and DateTimeField type is string