In a config modifier schema, use default to specify a value to return if any of the previous keywords result in a non-existent value. This value can be a primitive value or an object.
Definition of existence
This keyword executes at the following nesting level:
- omit
- constant
- references
- use
- get
- properties or if or concat or switch or pipe or merge
- default
- plugin
You could set a default value for a specific value if it doesn’t exist in the input.
Example: Default input
json
Example: Config modifier with default keyword
yaml
Example: Default output
json