Skip to content

Commit 8c4b7bd

Browse files
committed
Align copy with update
1 parent 5fc1510 commit 8c4b7bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

versions/1.1.0-dev.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ This object represents one or more changes to be applied to the target document
116116
| <a name="action-target"></a>target | `string` | **REQUIRED** A RFC9535 JSONPath query expression selecting nodes in the target document. |
117117
| <a name="action-description"></a>description | `string` | A description of the action. [[CommonMark]] syntax MAY be used for rich text representation. |
118118
| <a name="action-update"></a>update | Any | If the `target` selects object nodes, the value of this field MUST be an object with the properties and values to merge with each selected object. If the `target` selects array nodes, the value of this field MUST be an array to concatenate with each selected array, or an object or primitive value to append to each selected array. If the `target` selects primitive nodes, the value of this field MUST be a primitive value to replace each selected node. This field has no impact if the `remove` field of this action object is `true` or if the `copy` field contains a value. |
119-
| <a name="action-copy"></a>copy | `string` | A JSONPath expression selecting a single node to copy into the `target` nodes. 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 object. If the `target` selects an array node, the value of this field MUST be an array to concatenate with the selected array, or an object or primitive value to append to the selected array. If the `target` selects a primitive node, the value of this field MUST be a primitive value to replace the selected node. This field has no impact if the `remove` field of this action object is `true` or if the `update` field contains a value. |
119+
| <a name="action-copy"></a>copy | `string` | A JSONPath expression selecting a single node to copy into the `target` nodes. If the `target` selects object nodes, the value of this field MUST be an object with the properties and values to merge with each selected object. If the `target` selects array nodes, the value of this field MUST be an array to concatenate with each selected array, or an object or primitive value to append to each selected array. If the `target` selects primitive nodes, the value of this field MUST be a primitive value to replace each selected node. This field has no impact if the `remove` field of this action object is `true` or if the `update` field contains a value. |
120120
| <a name="action-remove"></a>remove | `boolean` | A boolean value that indicates that each of the target nodes MUST be removed from the the map or array it is contained in. The default value is `false`. |
121121

122122
If the `target` JSONPath expression selects zero nodes, the action succeeds without changing the target document.
@@ -287,7 +287,7 @@ info:
287287
title: Apply Traits
288288
version: 1.0.0
289289
actions:
290-
- target: $.paths.*.get[?(@['x-oai-traits'][?(@ == 'paged')])]
290+
- target: $.paths[?(@.get['x-oai-traits'][?(@ == 'paged')])].get
291291
update:
292292
parameters:
293293
- name: top

0 commit comments

Comments
 (0)