deepdiff
deepdiff copied to clipboard
"ignore_string_case" not working while comparing two JSON data.
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
Hi @TheAutomationWizard Thanks for reporting the bug. I will fix it when I have a chance. PR's are very welcome too.
This issue is resolved in the dev branch. I will keep you posted when I cut a release. Thanks