Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ignore_string_case" not working while comparing two JSON data. #341

Closed
TheAutomationWizard opened this issue Aug 23, 2022 · 2 comments
Closed
Assignees
Labels

Comments

@TheAutomationWizard
Copy link

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

@seperman seperman self-assigned this Aug 23, 2022
@seperman seperman added the bug label Aug 23, 2022
@seperman
Copy link
Owner

seperman commented Aug 23, 2022

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

seperman added a commit that referenced this issue Nov 20, 2023
@seperman
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants