          if pagination_class:
              return pagination_class()
          return None
  
      def _get_serializer(self, method, path):
          view = self.view
  
          if not hasattr(view, 'get_serializer'):
 
</s> remove                 for ct in self.content_types
 </s> add                 for ct in self.request_media_types
    def map_parsers(self, path, method):
        return list(map(attrgetter('media_type'), self.view.parser_classes))

    def map_renderers(self, path, method):
        media_types = []
        for renderer in self.view.renderer_classes:
            # BrowsableAPIRenderer not relevant to OpenAPI spec
            if renderer == renderers.BrowsableAPIRenderer:
                continue
            media_types.append(renderer.media_type)
        return media_types

          if pagination_class:
              return pagination_class()
          return None
  
    def map_parsers(self, path, method):
        return list(map(attrgetter('media_type'), self.view.parser_classes))

    def map_renderers(self, path, method):
        media_types = []
        for renderer in self.view.renderer_classes:
            # BrowsableAPIRenderer not relevant to OpenAPI spec
            if renderer == renderers.BrowsableAPIRenderer:
                continue
            media_types.append(renderer.media_type)
        return media_types

      def _get_serializer(self, method, path):
          view = self.view
  
          if not hasattr(view, 'get_serializer'):
keep keep keep add keep keep keep keep
 OpenAPI: Map renderers/parsers for request/response media-types. (#6865) 
rest_framework/schemas/openapi.py