              'properties': properties
          }
  
      def _map_field_validators(self, validators, schema):
          """
          map field validators
          :param list:validators: list of field validators
          :param dict:schema: schema that the validators get added to
 
</s> remove         return {
            'required': required,
            'properties': properties,
 </s> add         result = {
            'properties': properties </s> remove                     item_schema['required'] = [f for f in item_schema['required'] if f != name]
 </s> add                     if 'required' in item_schema:
                        item_schema['required'] = [f for f in item_schema['required'] if f != name]
        if len(required) > 0:
            result['required'] = required

        return result
              'properties': properties
          }
        if len(required) > 0:
            result['required'] = required

        return result
  
      def _map_field_validators(self, validators, schema):
          """
          map field validators
          :param list:validators: list of field validators
          :param dict:schema: schema that the validators get added to
keep add keep keep keep keep keep keep
 OpenAPI: only include non-empty required property. (#6851)

Closes #6834 
rest_framework/schemas/openapi.py