remove
Remove fields
It is not an error to remove a non-existent field
Example: unconditional removal
input:
{"one":1,"two":2}
action:
remove:
fields:
- two
output:
{"one":1}
Example: conditional removal
input:
{"one":1,"two":1}
{"one":1,"two":2}
action:
remove:
condition: two >= 2
fields:
- two
output:
{"one":1,"two":1}
{"one":1}
Field Name | Description | Type | Default |
---|---|---|---|
warn-on-missing | Emit a warning if a field is missing but was expected to be removed | bool | false |
condition | Only run this action if the condition the specified condition is met | expression | - |
fields | The list of fields that should be removed if present | array of fields | - |
warn-on-missing
Emit a warning if a field is missing but was expected to be removed
Type: bool
condition
Only run this action if the condition the specified condition is met
Type: expression
fields
The list of fields that should be removed if present
Type: array of fields