Starcounter-Jack / JSON-Patch

Lean and mean Javascript implementation of the JSON-Patch standard (RFC 6902). Update JSON documents using delta patches.
MIT License
1.78k stars 215 forks source link

feat(compare): ignore paths using a path matcher when comparing documents #302

Open juzerzarif opened 1 year ago

juzerzarif commented 1 year ago

This addresses one of the changes mentioned in #157 (comment).

Adding the ability to ignore diffing certain paths when comparing two documents. My specific use case for this is to compare a partial copy of a source object with the source and ignore any paths from the source that are not in the partial copy.