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
Section 4.3 of RFC6902 says:
The target location MUST exist for the operation to be successful.
But fast-json-patch incorrectly does an add instead of failing in this situation:
fast-json-patch
add
var fastJsonPatch = require("fast-json-patch") var document = { foo: "bar" }; var patch = [ { op: "replace", path: "/biz", value: "baz" }, ]; document = fastJsonPatch.applyPatch(document, patch).newDocument;
The result is:
{biz: "baz", foo: "bar"}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Section 4.3 of RFC6902 says:
But
fast-json-patch
incorrectly does anadd
instead of failing in this situation:The result is:
The text was updated successfully, but these errors were encountered: