Skip to content

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

Closed
@TheAutomationWizard

Description

@TheAutomationWizard

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions