Skip to content

Commit

Permalink
docs: Update delta bundle patch doc for remove op
Browse files Browse the repository at this point in the history
Update remove description to mention that target path must exist.

Signed-off-by: 0marq <45561584+0marq@users.noreply.github.com>
  • Loading branch information
0marq committed Mar 26, 2024
1 parent d6c8c1b commit 6c08d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/management-bundles.md
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ operation to perform. Valid options include:

| op | Description |
|-----|--------------|
| `"remove"` | The `"path"` specified will be removed from OPA's in-memory store. The `"value"` field is ignored for `"remove"` operations. |
| `"remove"` | The `"path"` specified will be removed from OPA's in-memory store. The `"value"` field is ignored for `"remove"` operations. The target path must exist for the operation to be successful. |
| `"replace"` | The value at the specified `"path"` will be replaced by the new value defined by the `"value"` field. The target path must exist for the operation to be successful. |
| `"upsert"` | The `"value"` will be set at the specified `"path"`. If the `"path"` specifies an array index, the `"value"` is inserted into the array at the specified index. If the `"path"` specifies an object member that does not already exist, a new member is added to the object. If the object member exists, its value is replaced. If the `"path"` does not exist, OPA will create and add it to its in-memory store. |

Expand Down

0 comments on commit 6c08d3f

Please sign in to comment.