You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JSON Patch defines a JSON document structure for expressing a sequence of operations to apply to a JavaScript Object Notation (JSON) document; it is suitable for use with the HTTP PATCH method. The "application/json-patch+json" media type is used to identify such patch documents.
If two documents, old_doc and new_doc, are involved, we say:
We diff old_doc and new_old, resulting in a patch p
We apply patch p to old_doc, resulting in a new document equal to new_doc
biothings.utils.jsonpatch is a copy of the 1.13 version, while PyPi - jsonpatch has been developed to 1.32. Any particular reason to keep the old version in our code base? Can we just install jsonpatch as a library?
jsonpatch.make_patch() can replace jsondiff.make() if we don't take the element order in list values into account. jsondiff has two option variables, UNORDERED_LIST and USE_LIST_OPS, to enable/disable the diff operation on list values, however are they really used in the codebase?
Plus I prefer to making these 2 global options as parameters to jsondiff.make()
The text was updated successfully, but these errors were encountered:
Definition
From rfc6902:
If two documents,
old_doc
andnew_doc
, are involved, we say:old_doc
andnew_old
, resulting in a patchp
p
toold_doc
, resulting in a new document equal tonew_doc
Two modules in our codebase can do the diffs
Dependency Management
Some questions towards these 2 modules:
1.13
version, while PyPi - jsonpatch has been developed to1.32
. Any particular reason to keep the old version in our code base? Can we just installjsonpatch
as a library?jsonpatch.make_patch()
can replacejsondiff.make()
if we don't take the element order in list values into account.jsondiff
has two option variables,UNORDERED_LIST
andUSE_LIST_OPS
, to enable/disable the diff operation on list values, however are they really used in the codebase?jsondiff.make()
The text was updated successfully, but these errors were encountered: