jsonpatch
jsonpatch copied to clipboard
As per http://jsonpatch.com/ JSON Patch is specified in RFC 6902 from the IETF.
Different from other operations, the array "remove" operations’ order should be descending by path index. Origin: [{"id": 1, "title":"news 1"}, {"id": 2, "title":"news 2"}, {"id": 4, "title":"news 4"}] Target: [{"id":...
See this issue I opened in https://github.com/evanphx/json-patch/issues/106 and the PR https://github.com/evanphx/json-patch/pull/107 I used this library(CreatePatch) to crate a jsonPath for `K8s webhook`. When the K8s internal logics apply the patch,...
Signed-off-by: Dave Protasowski
Hi, Would you consider support for copy and move operations? I noticed that requires 'from' field in the JsonPatchOperation struct. Thanks Aditya
mattbaird/jsonpatch is unfortunately no longer maintained. I recommend checking out [herkyl/patchwerk](https://github.com/herkyl/patchwerk) for creating JSON Patch documents.
```go package test import ( "testing" "github.com/mattbaird/jsonpatch" "github.com/stretchr/testify/require" ) func TestJSONPatchCreate(t *testing.T) { cases := map[string]struct { a string b string }{ "object": { `{"asdf": "qwerty"}`, `{"asdf": "zzz"}`, }, "array":...
found that we have two solutions on go for jsonpatch, one generates and the other one applies, made a humble attempt at joining them [here](https://github.com/benitogf/jsonpatch) still needs: - refactoring to...
Hello, first thanks for your effort creating this library. I was wondering if the following behavior is intended? ## Actual Behavior If the following code is executed the result is...
Thanks for this handy library. I am trying to generate JSON patch . Here is a case that produces buggy patch: ``` src = { "spec": { "loadBalancerSourceRanges": [ "192.101.0.0/16",...
https://github.com/json-patch/json-patch-tests