                  schema['pattern'] = v.regex.pattern
              elif isinstance(v, MaxLengthValidator):
                  schema['maxLength'] = v.limit_value
              elif isinstance(v, MinLengthValidator):
                  schema['minLength'] = v.limit_value
              elif isinstance(v, MaxValueValidator):
                  schema['maximum'] = v.limit_value
              elif isinstance(v, MinValueValidator):
                  schema['minimum'] = v.limit_value
              elif isinstance(v, DecimalValidator):
 
</s> remove                 schema['maxLength'] = v.limit_value
 </s> add                 attr_name = 'maxLength'
                if isinstance(field, serializers.ListField):
                    attr_name = 'maxItems'
                schema[attr_name] = v.limit_value </s> remove             self._map_field_validators(field.validators, schema)
 </s> add             self._map_field_validators(field, schema) </s> remove     def _map_field_validators(self, validators, schema):
 </s> add     def _map_field_validators(self, field, schema): </s> remove         for v in validators:
 </s> add         for v in field.validators:
                attr_name = 'minLength'
                if isinstance(field, serializers.ListField):
                    attr_name = 'minItems'
                schema[attr_name] = v.limit_value
                  schema['pattern'] = v.regex.pattern
              elif isinstance(v, MaxLengthValidator):
                  schema['maxLength'] = v.limit_value
              elif isinstance(v, MinLengthValidator):
                attr_name = 'minLength'
                if isinstance(field, serializers.ListField):
                    attr_name = 'minItems'
                schema[attr_name] = v.limit_value
              elif isinstance(v, MaxValueValidator):
                  schema['maximum'] = v.limit_value
              elif isinstance(v, MinValueValidator):
                  schema['minimum'] = v.limit_value
              elif isinstance(v, DecimalValidator):
keep keep keep keep replace keep keep keep keep keep
 Fixed min/max attributes for serializers.ListField (#6866) 
rest_framework/schemas/openapi.py