Closed ostackbrian closed 6 years ago
This was detected by openstack/python-glanceclient unit tests. Here's a command line example:
$ cat has-friend.json { "name": "fred", "friend": "barney", "spouse": "betty" } $ cat no-friend.json { "name": "fred", "spouse": "betty" }
$ jsondiff --version jsondiff 1.20 $ jsondiff has-friend.json no-friend.json [{"path": "/friend", "value": "barney", "op": "remove"}]
$ /usr/local/bin/jsondiff --version jsondiff 1.16 $ /usr/local/bin/jsondiff has-friend.json no-friend.json [{"path": "/friend", "op": "remove"}]
My reading of https://tools.ietf.org/html/rfc6902#section-4.2 is the 1.16 version is correct.
See pull request #77.
Thanks!
This was detected by openstack/python-glanceclient unit tests. Here's a command line example:
$ cat has-friend.json { "name": "fred", "friend": "barney", "spouse": "betty" } $ cat no-friend.json { "name": "fred", "spouse": "betty" }
$ jsondiff --version jsondiff 1.20 $ jsondiff has-friend.json no-friend.json [{"path": "/friend", "value": "barney", "op": "remove"}]
$ /usr/local/bin/jsondiff --version jsondiff 1.16 $ /usr/local/bin/jsondiff has-friend.json no-friend.json [{"path": "/friend", "op": "remove"}]
My reading of https://tools.ietf.org/html/rfc6902#section-4.2 is the 1.16 version is correct.