Merge commit '48b390994642e59eb1a461922a646b4c6544693c' into develop

This commit is contained in:
Max Bruckner 2017-05-01 18:02:03 +02:00
commit b00ecfd311
1 changed files with 15 additions and 0 deletions

View File

@ -55,6 +55,21 @@
"expected": "bar", "expected": "bar",
"disabled": true }, "disabled": true },
{ "comment": "replace object document with array document?",
"doc": {},
"patch": [{"op": "add", "path": "", "value": []}],
"expected": [] },
{ "comment": "replace array document with object document?",
"doc": [],
"patch": [{"op": "add", "path": "", "value": {}}],
"expected": {} },
{ "comment": "append to root array document?",
"doc": [],
"patch": [{"op": "add", "path": "/-", "value": "hi"}],
"expected": ["hi"] },
{ "comment": "Add, / target", { "comment": "Add, / target",
"doc": {}, "doc": {},
"patch": [ {"op": "add", "path": "/", "value":1 } ], "patch": [ {"op": "add", "path": "/", "value":1 } ],