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
For V4 and V5, the apply results of the values that do not exist in replace are inconsistent.
V5: replace operation does not apply: doc is missing key: /load
v4: update success.
Is there any consideration for this? Check whether the configuration will be modified in V5.
Also, where are the differences between v4 and v5? Is there a link available?
What is the difference between the v5 and cmd/json directories?
func TestJsonPatchNewOrRep(t *testing.T) { originalFile := []byte(`{ "allowedNfDomains": [ "nfdomain" ] }`) rawPatches := []byte(`[ { "op": "replace", "path": "/load", "value": 30 } ]`) patch, err := jsonpatch.DecodePatch(rawPatches) if err != nil { fmt.Println("cannot decode jsonpatch", err) } jsonPatched, err := patch.Apply(originalFile) if err != nil { fmt.Println("cannot apply jsonpatch: ", err) } fmt.Println(jsonPatched) }
The text was updated successfully, but these errors were encountered:
@evanphx Could you help me to answer it?
Sorry, something went wrong.
No branches or pull requests
For V4 and V5, the apply results of the values that do not exist in replace are inconsistent.
V5: replace operation does not apply: doc is missing key: /load
v4: update success.
Is there any consideration for this? Check whether the configuration will be modified in V5.
Also, where are the differences between v4 and v5? Is there a link available?
![image](https://private-user-images.githubusercontent.com/166912534/322327139-d0bb852b-c694-4055-b271-5764ca9f69b7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0NDI0NDksIm5iZiI6MTcyNDQ0MjE0OSwicGF0aCI6Ii8xNjY5MTI1MzQvMzIyMzI3MTM5LWQwYmI4NTJiLWM2OTQtNDA1NS1iMjcxLTU3NjRjYTlmNjliNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODIzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyM1QxOTQyMjlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jMjg1YTdlZjZlOWY2YjQ3YmM1NGU0ZDlmMGVmNzI5NWRmOWVjYjgyMTBmNGRhYjg4YjRmNTQyY2FmYzdkM2IzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.CYyicq75c90HHePMvl5xayPeKqIj1uYE3-Fe_kOEsUQ)
What is the difference between the v5 and cmd/json directories?
The text was updated successfully, but these errors were encountered: