json-patch / json-patch-tests

Tests for implementations of json-patch
68 stars 21 forks source link

Inconsistent errors #31

Open norpan opened 7 years ago

norpan commented 7 years ago

These two tests should give the same error:

    { "doc": {"bar": [1, 2]},
      "patch": [{"op": "add", "path": "/bar/8", "value": "5"}],
      "error": "Out of bounds (upper)" }

and

{ "comment": "add item to array at index > length should fail",
      "doc": ["foo", "sil"],
      "patch": [{"op":"add", "path": "/3", "value": "bar"}],
      "error": "index is greater than number of items in array" }