From 631b4e1f31cceb21f730fea6f3f9659a3fb3b27a Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Thu, 30 Oct 2025 15:48:43 -0400 Subject: [PATCH 1/2] fix: adds clarification regarding multi-selection Signed-off-by: Vincent Biret --- versions/1.1.0-dev.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions/1.1.0-dev.md b/versions/1.1.0-dev.md index 96b04eb..fdc1033 100644 --- a/versions/1.1.0-dev.md +++ b/versions/1.1.0-dev.md @@ -118,7 +118,7 @@ This object represents one or more changes to be applied to the target document | 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`. | | 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`. | -The result of the `target` JSONPath expression MUST be zero or more objects or arrays (not primitive types or `null` values). +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 all either be objects or arrays. 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. From 69dc6109878f69201e06dfdb4b318681c200b512 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Thu, 30 Oct 2025 16:53:56 -0400 Subject: [PATCH 2/2] applies review suggestions Co-authored-by: Ralf Handl --- versions/1.1.0-dev.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions/1.1.0-dev.md b/versions/1.1.0-dev.md index fdc1033..90af26a 100644 --- a/versions/1.1.0-dev.md +++ b/versions/1.1.0-dev.md @@ -118,7 +118,7 @@ This object represents one or more changes to be applied to the target document | 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`. | | 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`. | -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 all either be objects or arrays. +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. 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.