                  'items': self._map_choicefield(field)
              }
  
          if isinstance(field, serializers.ChoiceField):
              return self._map_choicefield(field)
  
          # ListField.
          if isinstance(field, serializers.ListField):
              mapping = {
                  'type': 'array',
 
</s> remove                 'items': self._map_choicefield(field)
 </s> add                 'items': self.map_choicefield(field) </s> remove                 mapping['items'] = self._map_field(field.child)
 </s> add                 mapping['items'] = self.map_field(field.child) </s> remove                 'items': self._map_serializer(field.child)
 </s> add                 'items': self.map_serializer(field.child) </s> remove                 'items': self._map_field(field.child_relation)
 </s> add                 'items': self.map_field(field.child_relation) </s> remove             data = self._map_serializer(field)
 </s> add             data = self.map_serializer(field)
            return self.map_choicefield(field)
                  'items': self._map_choicefield(field)
              }
  
          if isinstance(field, serializers.ChoiceField):
            return self.map_choicefield(field)
  
          # ListField.
          if isinstance(field, serializers.ListField):
              mapping = {
                  'type': 'array',
keep keep keep keep replace keep keep keep keep keep
 Convert openapi.AutoSchema methods to public API. 
rest_framework/schemas/openapi.py