-
Notifications
You must be signed in to change notification settings - Fork 98
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)==dstproduces 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