In a config modifier schema, use items to:
- modify an array size
- omit existing information
- add new information
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
Let’s say you want to modify the Observations array in a Flowsheet based on the Code. More specifically, you can remove an observation if it matches one of the specified Codes.
If you need to modify the contents of existing items in an array and change the array size, it’s best to do so with one config modifier rather than separate config modifiers (i.e., don’t create $.Observation[*].Value; add the change in the config modifier below).
Example: Items input from initial payload
json
Example: Items selector
json
Example: Config modifier with items keyword
yaml
Based on this example config modifier schema, this is the output.
Example: Items output in processed payload
json