Skip to content

Commit ea46130

Browse files
committed
RFC 7386, part 11: more tests for object merge patch case
Add more scenarios, along with the example provided by the RFC itself.
1 parent 81aea36 commit ea46130

1 file changed

Lines changed: 34 additions & 1 deletion

File tree

src/test/resources/jsonpatch/rfc7386/patch-object.json

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,38 @@
4646
"patch": { "a": "b", "c": null },
4747
"victim": "Hello world!",
4848
"result": { "a": "b" }
49+
},
50+
{
51+
"patch": { "foo": "bar " },
52+
"victim": true,
53+
"result": { "foo": "bar " }
54+
},
55+
{
56+
"patch": {
57+
"title": "Hello!",
58+
"phoneNumber": "+01-123-456-7890",
59+
"author": {
60+
"familyName": null
61+
},
62+
"tags": [ "example" ]
63+
},
64+
"victim": {
65+
"title": "Goodbye!",
66+
"author": {
67+
"givenName": "John",
68+
"familyName": "Doe"
69+
},
70+
"tags": [ "example", "sample" ],
71+
"content": "This will be unchanged"
72+
},
73+
"result": {
74+
"title": "Hello!",
75+
"author": {
76+
"givenName": "John"
77+
},
78+
"tags": [ "example" ],
79+
"content": "This will be unchanged",
80+
"phoneNumber": "+01-123-456-7890"
81+
}
4982
}
50-
]
83+
]

0 commit comments

Comments
 (0)