              return {}
  
          component_name = self.get_component_name(serializer)
  
          content = self._map_serializer(serializer)
          return {component_name: content}
  
      def _to_camel_case(self, snake_str):
          components = snake_str.split('_')
          # We capitalize the first letter of each component except the first one
 
</s> remove         serializer = self._get_serializer(path, method)
 </s> add         serializer = self.get_serializer(path, method) </s> remove         for response in inspector._get_responses(path, method).values():
 </s> add         for response in inspector.get_responses(path, method).values(): </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         responses = inspector._get_responses(path, method)
 </s> add         responses = inspector.get_responses(path, method) </s> remove         for response in inspector._get_responses(path, method).values():
 </s> add         for response in inspector.get_responses(path, method).values():
        content = self.map_serializer(serializer)
              return {}
  
          component_name = self.get_component_name(serializer)
  
        content = self.map_serializer(serializer)
          return {component_name: content}
  
      def _to_camel_case(self, snake_str):
          components = snake_str.split('_')
          # We capitalize the first letter of each component except the first one
keep keep keep keep replace keep keep keep keep keep
 Convert openapi.AutoSchema methods to public API. 
rest_framework/schemas/openapi.py