We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
add
replace
when I run the follow case with python-json-patch, it failed. Detail in stefankoegl/python-json-patch#111 (comment). But when I change the add operation to replace, it succeeded.
json-patch-tests/tests.json
Lines 63 to 66 in ea3af85
The text was updated successfully, but these errors were encountered:
A path of "" means the root, or whole document. See https://datatracker.ietf.org/doc/html/rfc6901#section-5
"" // the whole document
The fact "add" to the whole document does a replace is covered by this part of the json-patch spec
https://datatracker.ietf.org/doc/html/rfc6902/#section-4.1
If the target location specifies an object member that does exist, that member's value is replaced.
The root exists, so it becomes a replace op
Sorry, something went wrong.
No branches or pull requests
when I run the follow case with python-json-patch, it failed. Detail in stefankoegl/python-json-patch#111 (comment). But when I change the
add
operation toreplace
, it succeeded.json-patch-tests/tests.json
Lines 63 to 66 in ea3af85
The text was updated successfully, but these errors were encountered: