- Notifications
You must be signed in to change notification settings - Fork 97
Closed
Description
src = [{'a': 1},{'b': 2}] dst = [{'a': 1,'b': 2}] patch = jsonpatch.make_patch(src,dst) print(patch.patch) print(patch.apply(src)) assert patch.apply(src)==dst
produces the following patch
[ {'op': 'remove', 'path': '/1'}, {'op': 'replace', 'value': 1, 'path': '/0/a'} ]
Which when applied to src
produces
[{'a': 1}]
which is obviously incorrect, and fails the assertion.
Metadata
Metadata
Assignees
Labels
No labels