We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aa68c84 + 6e51de2 commit 716417eCopy full SHA for 716417e
tests.json
@@ -393,6 +393,16 @@
393
{ "comment": "test with bad array number that has leading zeros",
394
"doc": ["foo", "bar"],
395
"patch": [{"op": "test", "path": "/01", "value": "bar"}],
396
- "error": "test op should reject the array value, it has leading zeros" }
+ "error": "test op should reject the array value, it has leading zeros" },
397
+
398
+ { "comment": "Removing nonexistent field",
399
+ "doc": {"foo" : "bar"},
400
+ "patch": [{"op": "remove", "path": "/baz"}],
401
+ "error": "removing a nonexistent field should fail" },
402
403
+ { "comment": "Removing nonexistent index",
404
+ "doc": ["foo", "bar"],
405
+ "patch": [{"op": "remove", "path": "/2"}],
406
+ "error": "removing a nonexistent index should fail" }
407
408
]
0 commit comments