              }
  
          self.response_media_types = self.map_renderers(path, method)
  
          serializer = self._get_serializer(path, method)
  
          if not isinstance(serializer, serializers.Serializer):
              item_schema = {}
          else:
              item_schema = self._get_reference(serializer)
 
</s> remove         serializer = self._get_serializer(path, method)
 </s> add         serializer = self.get_serializer(path, method) </s> remove             paginator = self._get_paginator()
 </s> add             paginator = self.get_paginator() </s> remove         elif self._get_serializer(path, method) is not None:
            name = self._get_serializer(path, method).__class__.__name__
 </s> add         elif self.get_serializer(path, method) is not None:
            name = self.get_serializer(path, method).__class__.__name__ </s> remove     def _map_serializer(self, serializer):
 </s> add     def map_serializer(self, serializer): </s> remove             data = self._map_serializer(field)
 </s> add             data = self.map_serializer(field)
        serializer = self.get_serializer(path, method)
              }
  
          self.response_media_types = self.map_renderers(path, method)
  
        serializer = self.get_serializer(path, method)
  
          if not isinstance(serializer, serializers.Serializer):
              item_schema = {}
          else:
              item_schema = self._get_reference(serializer)
keep keep keep keep replace keep keep keep keep keep
 Convert openapi.AutoSchema methods to public API. 
rest_framework/schemas/openapi.py