File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 383
383
"patch" : [{"op" : " add" , "path" : " /1e0" , "value" : " bar" }],
384
384
"error" : " add op shouldn't add to array with bad number" },
385
385
386
+ { "comment" : " missing 'path' parameter" ,
387
+ "doc" : {},
388
+ "patch" : [ { "op" : " add" , "value" : " bar" } ],
389
+ "error" : " missing 'path' parameter" },
390
+
391
+ { "comment" : " 'path' parameter with null value" ,
392
+ "doc" : {},
393
+ "patch" : [ { "op" : " add" , "path" : null , "value" : " bar" } ],
394
+ "error" : " null is not valid value for 'path'" },
395
+
396
+ { "comment" : " invalid JSON Pointer token" ,
397
+ "doc" : {},
398
+ "patch" : [ { "op" : " add" , "path" : " foo" , "value" : " bar" } ],
399
+ "error" : " JSON Pointer should start with a slash" },
400
+
386
401
{ "comment" : " missing 'value' parameter to add" ,
387
402
"doc" : [ 1 ],
388
403
"patch" : [ { "op" : " add" , "path" : " /-" } ],
You can’t perform that action at this time.
0 commit comments