* Fix JMESPath functions error message
JMESPath functions `parse_yaml`, `items` and `object_from_lists` use
wrong format string arguments for an error message and count the
argument from 0 instead of 1.
Fix the format string args and add 1 to the argument index.
Also improve the error message itself.
Signed-off-by: Andreas Brehmer <andreas.brehmer@sap.com>
* Add JMESPath function `lookup`
`lookup` allows for dynamic lookups of objects and arrays, i.e. where
the key/index to look up is determined during the JMESPath query and
thus cannot be injected upfront.
Signed-off-by: Andreas Brehmer <andreas.brehmer@sap.com>
---------
Signed-off-by: Andreas Brehmer <andreas.brehmer@sap.com>
Co-authored-by: shuting <shuting@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>