Skip to content

Commit 091ce79

Browse files
authored
Apply suggestions from code review
1 parent 57bf2bb commit 091ce79

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

versions/1.1.0-dev.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,16 @@ The result of the `target` JSONPath expression MUST be zero or more objects or a
122122

123123
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.
124124

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.
126126

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:
128128

129129
- 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.
135135
- Other property value combinations are incompatible and result in an error.
136136

137137
This object MAY be extended with [Specification Extensions](#specification-extensions).

0 commit comments

Comments
 (0)