  import warnings
  
  from django.db import models
  from django.utils.encoding import force_text
  
  from rest_framework import exceptions, serializers
  from rest_framework.compat import uritemplate
 
</s> remove             serializers.DecimalField: 'number',
            serializers.FloatField: 'number',
            serializers.IntegerField: 'integer',

 </s> add 
from django.core.validators import (
    DecimalValidator, EmailValidator, MaxLengthValidator, MaxValueValidator,
    MinLengthValidator, MinValueValidator, RegexValidator, URLValidator
)
  import warnings
  
from django.core.validators import (
    DecimalValidator, EmailValidator, MaxLengthValidator, MaxValueValidator,
    MinLengthValidator, MinValueValidator, RegexValidator, URLValidator
)
  from django.db import models
  from django.utils.encoding import force_text
  
  from rest_framework import exceptions, serializers
  from rest_framework.compat import uritemplate
keep add keep keep keep keep keep
 Generate OpenAPI schema field types from validators. (#6674) 
rest_framework/schemas/openapi.py