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
According to RFC 6902, a move operation should fail if the from location does not exist. The spec also states that a replace operation should fail if the path does not exist.
My testing shows that neither of these errors are caught at the moment.
The text was updated successfully, but these errors were encountered:
@evanphx I'm trying to "replace" a value at a path that doesn't exist. Instead of failing the operation succeeds and "add"s a value at the path. Example:
Document:
{ "Metadata": { } }
Patch:
[
{
"op": "replace",
"path": "/Metadata/key1",
"value": "val1"
}
]
Expected result is a failure to apply patch since key1 doesn't exist
Actual result: {"Metadata":{"key1":"val1"}}
According to RFC 6902, a
move
operation should fail if thefrom
location does not exist. The spec also states that areplace
operation should fail if thepath
does not exist.My testing shows that neither of these errors are caught at the moment.
The text was updated successfully, but these errors were encountered: