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

diff does not return 'path' key #181

Open
markatango opened this issue Mar 29, 2022 · 1 comment
Open

diff does not return 'path' key #181

markatango opened this issue Mar 29, 2022 · 1 comment

Comments

@markatango
Copy link

Documentation says:
`v 0.2.0 and above The code snippet above would result in the following structure describing the differences:

[ { kind: 'E',
path: [ 'name' ],
lhs: 'my object',
rhs: 'updated object' },
...Butpath` key is actually not present in the result.

@markatango
Copy link
Author

Apparently, deep-diff returns a 'D' type and path element if rhs is {}.
But it returns an 'E" type and no path element if rhs is null.
I think rhs is null should also return a 'D' type with path element.
If lhs is {} d-d returns 'N' type with path element.
But, if lhs is null, d-d also returns an 'E' type with no path element. Should be 'N' type with path.

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

1 participant