              content['maximum'] = field.max_value
          if field.min_value:
              content['minimum'] = field.min_value
  
      def _map_serializer(self, serializer):
          # Assuming we have a valid serializer instance.
          required = []
          properties = {}
  
          for field in serializer.fields.values():
 
</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) </s> remove     def _map_choicefield(self, field):
 </s> add     def map_choicefield(self, field): </s> remove         serializer = inspector._get_serializer(path, method)
 </s> add         serializer = inspector.get_serializer(path, method) </s> remove         operation['responses'] = self._get_responses(path, method)
 </s> add         operation['responses'] = self.get_responses(path, method)
    def map_serializer(self, serializer):
              content['maximum'] = field.max_value
          if field.min_value:
              content['minimum'] = field.min_value
  
    def map_serializer(self, serializer):
          # Assuming we have a valid serializer instance.
          required = []
          properties = {}
  
          for field in serializer.fields.values():
keep keep keep keep replace keep keep keep keep keep
 Convert openapi.AutoSchema methods to public API. 
rest_framework/schemas/openapi.py