          # Nested Serializers, `many` or not.
          if isinstance(field, serializers.ListSerializer):
              return {
                  'type': 'array',
                  'items': self._map_serializer(field.child)
              }
          if isinstance(field, serializers.Serializer):
              data = self._map_serializer(field)
              data['type'] = 'object'
              return data
 
</s> remove             data = self._map_serializer(field)
 </s> add             data = self.map_serializer(field) </s> remove     def _map_field(self, field):
 </s> add     def map_field(self, field): </s> remove             return self._map_choicefield(field)
 </s> add             return self.map_choicefield(field) </s> remove                 'items': self._map_field(field.child_relation)
 </s> add                 'items': self.map_field(field.child_relation) </s> remove                 'items': self._map_choicefield(field)
 </s> add                 'items': self.map_choicefield(field)
                'items': self.map_serializer(field.child)
          # Nested Serializers, `many` or not.
          if isinstance(field, serializers.ListSerializer):
              return {
                  'type': 'array',
                'items': self.map_serializer(field.child)
              }
          if isinstance(field, serializers.Serializer):
              data = self._map_serializer(field)
              data['type'] = 'object'
              return data
keep keep keep keep replace keep keep keep keep keep
 Convert openapi.AutoSchema methods to public API. 
rest_framework/schemas/openapi.py