You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The target location MUST exist for the operation to be successful.
In JSON Pointer, 'the single character "-", mak[es] the new referenced value the (nonexistent) member after the last array element.'
Thus, both remove and replace can't use a path with -. However, anecdotally some implementations are using - to indicate roughly "the last element of the array" and allowing them in remove and replace.
Unfortunately, the tests don't cover this case, so it's not clear how implementations behave.
The text was updated successfully, but these errors were encountered:
The definitions of
remove
andreplace
both state:In JSON Pointer, 'the single character "-", mak[es] the new referenced value the (nonexistent) member after the last array element.'
Thus, both
remove
andreplace
can't use apath
with-
. However, anecdotally some implementations are using-
to indicate roughly "the last element of the array" and allowing them inremove
andreplace
.Unfortunately, the tests don't cover this case, so it's not clear how implementations behave.
The text was updated successfully, but these errors were encountered: