  
          if method.lower() == 'delete':
              return {}
  
          serializer = self._get_serializer(path, method)
  
          if not isinstance(serializer, serializers.Serializer):
              return {}
  
          component_name = self.get_component_name(serializer)
 
</s> remove         serializer = self._get_serializer(path, method)
 </s> add         serializer = self.get_serializer(path, method) </s> remove         content = self._map_serializer(serializer)
 </s> add         content = self.map_serializer(serializer) </s> remove     def _map_serializer(self, serializer):
 </s> add     def map_serializer(self, serializer): </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 _get_pagination_parameters(self, path, method):
 </s> add     def get_pagination_parameters(self, path, method):
        serializer = self.get_serializer(path, method)
  
          if method.lower() == 'delete':
              return {}
  
        serializer = self.get_serializer(path, method)
  
          if not isinstance(serializer, serializers.Serializer):
              return {}
  
          component_name = self.get_component_name(serializer)
keep keep keep keep replace keep keep keep keep keep
 Convert openapi.AutoSchema methods to public API. 
rest_framework/schemas/openapi.py