Enhancements and bug fixes
-
applyOperation
andapplyReducer
now accept an optional index parameter. This param is used to create more elaborate error messages when invalid operations occur in your patches, #221. -
Error messages are now nicely-formatted, they look like:
The specified index MUST NOT be greater than the number of elements in the array
name: OPERATION_VALUE_OUT_OF_BOUNDS
index: 1
operation: {
"op": "add",
"path": "/root/1",
"value": "val"
}
tree: {
"root": []
}"