We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 716417e commit 5405313Copy full SHA for 5405313
tests.json
@@ -55,6 +55,21 @@
55
"expected": "bar",
56
"disabled": true },
57
58
+ { "comment": "replace object document with array document?",
59
+ "doc": {},
60
+ "patch": [{"op": "add", "path": "", "value": []}],
61
+ "expected": [] },
62
+
63
+ { "comment": "replace array document with object document?",
64
+ "doc": [],
65
+ "patch": [{"op": "add", "path": "", "value": {}}],
66
+ "expected": {} },
67
68
+ { "comment": "append to root array document?",
69
70
+ "patch": [{"op": "add", "path": "/-", "value": "hi"}],
71
+ "expected": ["hi"] },
72
73
{ "comment": "Add, / target",
74
"doc": {},
75
"patch": [ {"op": "add", "path": "/", "value":1 } ],
0 commit comments