Skip to main content

Module path

Module path 

Source
Expand description

Dotted JSON paths (output.items[0].name) and {{ var }} substitution in assertion values. No JavaScript: a path is identifiers, . and [index].

Structs§

JsonPath
A parsed path such as output.items[0].name or outputs["odd key"].

Functions§

render
Replace {{ path }} references in every string of value, looking paths up in context. A string that is exactly one reference becomes the referenced value itself (so value: "{{expected_docs}}" can be a list); otherwise the referenced values are inserted as text. Unknown references are errors.