We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c91f7e8 commit 84d3c86Copy full SHA for 84d3c86
1 file changed
tests.json
@@ -378,5 +378,16 @@
378
{ "comment": "unrecognized op should fail",
379
"doc": {"foo": 1},
380
"patch": [{"op": "spam", "path": "/foo", "value": 1}],
381
- "error": "Unrecognized op 'spam'" }
+ "error": "Unrecognized op 'spam'" },
382
+
383
+ { "comment": "test with bad array number that has leading zeros",
384
+ "doc": ["foo", "bar"],
385
+ "patch": [{"op": "test", "path": "/00", "value": "foo"}],
386
+ "error": "test op should reject the array value, it has leading zeros" },
387
388
389
390
+ "patch": [{"op": "test", "path": "/01", "value": "bar"}],
391
+ "error": "test op should reject the array value, it has leading zeros" }
392
393
]
0 commit comments