Closed lucastheisen closed 6 months ago
Well, i just saw this in the RFC for JSON Patch:
The "from" location MUST NOT be a proper prefix of the "path" location; i.e., a location cannot be moved into one of its children.
So my use case is invalid (as is the test per-se)... But the lack of support for ""
JSON Pointer may still be something you want to address. You can close this issue out if you would like, or modify it to deal with the JSON Pointer support.
@lucastheisen Gotcha gotcha. Trying some other json patch implementations, they largely fail to handle when from
is ""
, so I think we're in a bit of uncharted waters here.
Could you have a look at #193 and give me your thoughts? Thanks!
@evanphx , that merge looks great.
According to the JSON Pointer RFC 6901:
But using that as a
from
results in amissing value
error.Adding this test will demonstrate the bug: