Update json-patch-tests

This commit is contained in:
Max Bruckner 2017-11-20 22:04:57 +01:00
commit 043507872e
1 changed files with 5 additions and 0 deletions

View File

@ -202,6 +202,11 @@
"patch": [{"op": "replace", "path": "", "value": {"baz": "qux"}}],
"expected": {"baz": "qux"} },
{ "comment": "test replace with missing parent key should fail",
"doc": {"bar": "baz"},
"patch": [{"op": "replace", "path": "/foo/bar", "value": false}],
"error": "replace op should fail with missing parent key" },
{ "comment": "spurious patch properties",
"doc": {"foo": 1},
"patch": [{"op": "test", "path": "/foo", "value": 1, "spurious": 1}],