  
          # Simplest cases, default to 'string' type:
          FIELD_CLASS_SCHEMA_TYPE = {
              serializers.BooleanField: 'boolean',
              serializers.DecimalField: 'number',
              serializers.FloatField: 'number',
              serializers.IntegerField: 'integer',
  
              serializers.JSONField: 'object',
              serializers.DictField: 'object',
          }
          return {'type': FIELD_CLASS_SCHEMA_TYPE.get(field.__class__, 'string')}
  
 
</s>
  
          # Simplest cases, default to 'string' type:
          FIELD_CLASS_SCHEMA_TYPE = {
              serializers.BooleanField: 'boolean',




              serializers.JSONField: 'object',
              serializers.DictField: 'object',
          }
          return {'type': FIELD_CLASS_SCHEMA_TYPE.get(field.__class__, 'string')}
  
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Generate OpenAPI schema field types from validators. (#6674)
rest_framework/schemas/openapi.py