File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 383383 { "comment" : " unrecognized op should fail" ,
384384 "doc" : {"foo" : 1 },
385385 "patch" : [{"op" : " spam" , "path" : " /foo" , "value" : 1 }],
386- "error" : " Unrecognized op 'spam'" }
386+ "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+ { "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" }
397+
387398]
You can’t perform that action at this time.
0 commit comments