              properties[field.field_name] = schema
  
          result = {
              'properties': properties
          }
          if required:
              result['required'] = required
  
          return result
 
</s>
            'type': 'object',
              properties[field.field_name] = schema
  
          result = {
            'type': 'object',
              'properties': properties
          }
          if required:
              result['required'] = required
  
          return result
keep keep add keep keep keep keep keep keep
 OpenAPI: Include type key in schema object properties dict. (#7169)
rest_framework/schemas/openapi.py