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 returns incorrect value when items are deleted #22

Open
karrtikiyer opened this issue Sep 27, 2018 · 2 comments
Open

diff returns incorrect value when items are deleted #22

karrtikiyer opened this issue Sep 27, 2018 · 2 comments

Comments

@karrtikiyer
Copy link

karrtikiyer commented Sep 27, 2018

diff({'a': 1, 'b': 2}, {}, syntax='symmetric')
I expect the above to return
{delete: {'a': 1, 'b': 2}}
instead it returns
[{'a': 1, 'b': 2}, {}]

@adgelbfish
Copy link

you probably want syntax='explicit'

@jayrbolton
Copy link

jayrbolton commented Jan 17, 2020

How about this?

diff({'a': 1, 'b': 2}, {}, syntax='explicit') == diff({}, {}, syntax='explicit')                              
> True

How could these two diffs be equivalent? Am I not understanding something basic here?

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

3 participants