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

Is there a way to systematically cycle through all corresponding attributes that haven't changed? #447

Open
codingbutstillalive opened this issue Jan 26, 2024 · 1 comment

Comments

@codingbutstillalive
Copy link

codingbutstillalive commented Jan 26, 2024

In my case, I need to check all unchanged values to see if they were empty (i.e. "") or non-empty (i.e. some number or string other than "") to implement a logic that distinguishes between True Positive and False Negatives. I am struggling with the nested structures of the JSON objects to be compared with each other.

@codingbutstillalive codingbutstillalive changed the title Is there are way to systematically cycle through all corresponding attributes - even if they haven't changed? Is there a way to systematically cycle through all corresponding attributes that haven't changed? Jan 26, 2024
@seperman
Copy link
Owner

seperman commented Feb 4, 2024

Hi @codingbutstillalive
This questions comes up from time to time. DeepDiff currently doesn't give you a way to do so.
In a nested object, how do you expect the report to what has stayed the same to be? Only the leaf nodes of the tree?

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

No branches or pull requests

2 participants