In a config modifier schema, use merge to avoid overwriting all of the properties of an output. This keyword combines multiple objects into one. If objects share the same property name, the value from the last object overwrites the first one.
Exclusive keywords
This keyword executes in the following order:
- omit
- constant
- references
- use
- get
- Mutually exclusive keywords at this level:
- properties
- if
- concat
- switch
- pipe
- merge
- prefer
- items
- default
- plugin
You could duplicate the Location resource's name to the description field.
Example: Merge input from initial payload
json
Example: Merge selector
json
Example: Config modifier with merge keyword
yaml
Example: Merge output
json
To achieve the same outcome with the use keyword and @parent variable, try this selector and config modifier instead:
Example: Alternative selector
json
Example: Alternative config modifier
yaml