deepdiff icon indicating copy to clipboard operation
deepdiff copied to clipboard

"ignore_string_case" not working while comparing two JSON data.

Open TheAutomationWizard opened this issue 3 years ago • 1 comments

Describe the bug DeepDiff parameter "ignore_string_case" does not ignore diff which are same but in different case, when set to True.

To Reproduce data_1 = { 'User' : { 'AboutMe' : 1, 'ALIAS' : 1 } } data_2 = { 'User' : { 'Alias' : 1, 'AboutMe' : 1 } } DeepDiff(data_1, data_2, ignore_string_case = True)

Buggy Output = {'dictionary_item_added': [root['User']['Alias']], 'dictionary_item_removed': [root['User']['ALIAS']]}

Expected behavior Expected Output = {}

OS, DeepDiff version and Python version (please complete the following information):

  • OS: Windows
  • Version 10
  • Python Version 3.9.1
  • DeepDiff Version 5.8.1

Additional context

TheAutomationWizard avatar Aug 23 '22 10:08 TheAutomationWizard

Hi @TheAutomationWizard Thanks for reporting the bug. I will fix it when I have a chance. PR's are very welcome too.

seperman avatar Aug 23 '22 11:08 seperman

This issue is resolved in the dev branch. I will keep you posted when I cut a release. Thanks

seperman avatar Nov 20 '23 01:11 seperman