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