Skip to content

Commit 47e615a

Browse files
authored
Merge pull request #212 from baywet/fix/target-clarification
fix: adds clarification regarding multi-selection
2 parents 9b23250 + 69dc610 commit 47e615a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

versions/1.1.0-dev.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ This object represents one or more changes to be applied to the target document
118118
| <a name="action-update"></a>update | Any | If the `target` selects an object node, the value of this field MUST be an object with the properties and values to merge with the selected node. If the `target` selects an array, the value of this field MUST be an entry to append to the array. This field has no impact if the `remove` field of this action object is `true`. |
119119
| <a name="action-remove"></a>remove | `boolean` | A boolean value that indicates that the target object or array MUST be removed from the the map or array it is contained in. The default value is `false`. |
120120

121-
The result of the `target` JSONPath expression MUST be zero or more objects or arrays (not primitive types or `null` values).
121+
The result of the `target` JSONPath expression MUST be zero or more objects or arrays (not primitive types or `null` values). Should the `target` JSONPath result in selecting two or more nodes, they MUST be either all objects or all arrays.
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

0 commit comments

Comments
 (0)