idubrov / json-patch

RFC 6902 (JSON Patch) / RFC 7396 (JSON Merge Patch) implementation for Rust
Apache License 2.0
127 stars 17 forks source link

Adding Merge to PatchOperation #33

Open zdcthomas opened 4 months ago

zdcthomas commented 4 months ago

I would like to add a MergeOperation to the PatchOperation type, but I wanted to check here first to see if there was a good reason that hadn't already been done. Thanks!

idubrov commented 4 months ago

It wasn't added because it is not specified in the RFC 6902.

zdcthomas commented 4 months ago

gotcha, ok cool, so that wouldn't be a welcome change then? What I'd ultimately like to be able to do is to include a merge with a list of Operations to be patched, but right now there's not an easy way to do that.