ajv-merge-patch
ajv-merge-patch copied to clipboard
feat: support for arrays of mergeable objects in the “with” argument of “$merge”
This is a working implementation of the feature proposed in #14. It would also close #12.
Coverage remained the same at 100.0% when pulling e84920a2b42c59d29553ffa5b05fc9c0b0f01954 on azaslavsky:arrays-for-with into d847ec318fad1ff7bad2a183e3329923fad8a70e on epoberezkin:master.
@azaslavsky Thank you, I will review
Hello, I was looking for the fix to #12 and was wondering, is there an update on the PR review?
The fix to #12 is very simple, there is a separate PR for that. To support an array instead of a simple schema, there is no need to change the package completely. Instead of passing "json-merge-patch" package as is, you just need to pass a wrapper around this package that understands arrays.