Closed jflitton closed 9 years ago
@jflitton Thanks for the detailed report. That sure seems like a bug! I should have time to look into it this weekend. I bet the problem is that our isValidObject
check is too lax and causes this code branch to allow an Array
and an object. Should be super-easy to fix.
Yep, that was it. Could you try the fix-issue-29 branch to see if it works for you? Thanks!
@briancavalier that did the trick! Thanks for the quick fix.
Cool, thanks for confirming. Version 0.7.2 just landed with this fix :confetti_ball:
First off, thanks for this wonderful library! I've written an event store which uses it and I've encountered the following behavior which I believe to be a bug:
results in a patch like this:
This patch cannot be applied however because the path "/stuff/a" isn't valid for an array:
The patch I expected to see is:
Am I way off base here?