          elif model is not None:
              name = model.__name__
  
          # Try with the serializer class name
          elif self._get_serializer(path, method) is not None:
              name = self._get_serializer(path, method).__class__.__name__
              if name.endswith('Serializer'):
                  name = name[:-10]
  
          # Fallback to the view name
          else:
 
</s> remove         serializer = inspector._get_serializer(path, method)
 </s> add         serializer = inspector.get_serializer(path, method) </s> remove                 'items': self._map_field(field.child_relation)
 </s> add                 'items': self.map_field(field.child_relation) </s> remove     def _get_path_parameters(self, path, method):
 </s> add     def get_path_parameters(self, path, method): </s> remove         serializer = self._get_serializer(path, method)
 </s> add         serializer = self.get_serializer(path, method) </s> remove         serializer = self._get_serializer(path, method)
 </s> add         serializer = self.get_serializer(path, method)
        elif self.get_serializer(path, method) is not None:
            name = self.get_serializer(path, method).__class__.__name__
          elif model is not None:
              name = model.__name__
  
          # Try with the serializer class name
        elif self.get_serializer(path, method) is not None:
            name = self.get_serializer(path, method).__class__.__name__
        elif self.get_serializer(path, method) is not None:
            name = self.get_serializer(path, method).__class__.__name__
              if name.endswith('Serializer'):
                  name = name[:-10]
  
          # Fallback to the view name
          else:
keep keep keep keep replace replace keep keep keep keep keep
 Convert openapi.AutoSchema methods to public API. 
rest_framework/schemas/openapi.py