You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versions/1.1.0-dev.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,16 +122,16 @@ The result of the `target` JSONPath expression MUST be zero or more objects or a
122
122
123
123
To update a primitive property value such as a string, the `target` expression should select the _containing_ object in the target document and `update` should contain an object with the property and its new primitive value.
124
124
125
-
Primitive-valued items of an array cannot be replaced or removed individually, only the complete array can be replaced with a `remove` action followed by an `update` action.
125
+
Primitive-valued items of an array cannot be replaced or removed individually, only the complete array can be replaced with a `remove` action followed by an `update` or `copy` action.
126
126
127
-
The properties of the `update` object MUST be compatible with the target object referenced by the JSONPath key. When the Overlay document is applied, the `update` object is merged with the target object by recursively applying these steps:
127
+
The properties of the `update` or `copy` object MUST be compatible with the target object referenced by the JSONPath key. When the Overlay document is applied, the `update` object is merged with the target object by recursively applying these steps:
128
128
129
129
- A property that only exists in the target object is left unchanged.
130
-
- A property that only exists in the `update` object is inserted into the target object.
131
-
- If a property exists in both `update` and target object:
132
-
- A primitive value of the `update` property replaces a primitive value of the target property.
133
-
- An array value of the `update` property is concatenated with an array value of the target property.
134
-
- An object value of the `update` property is recursively merged with an object value of the target property.
130
+
- A property that only exists in the `update` or `copy` object is inserted into the target object.
131
+
- If a property exists in both `update` or `copy` and target object:
132
+
- A primitive value of the `update` or `copy` property replaces a primitive value of the target property.
133
+
- An array value of the `update` or `copy` property is concatenated with an array value of the target property.
134
+
- An object value of the `update` or `copy` property is recursively merged with an object value of the target property.
135
135
- Other property value combinations are incompatible and result in an error.
136
136
137
137
This object MAY be extended with [Specification Extensions](#specification-extensions).
0 commit comments