![Kirill Izotov](/assets/img/avatar_default.png)
Allows to use Jinja instead of or along with YAQL for expression evaluation. * Improved error reporting on API endpoints. Previously, Mistral API tend to mute important logs related to errors during YAML parsing or expression evaluation. The messages were shown in the http response, but would not appear in logs. * Renamed yaql_utils to evaluation_utils and added few more tests to ensure evaluation functions can be safely reused between Jinja and YAQL evaluators. * Updated action_v2 example to reflect similarities between YAQL and Jinja syntax. Change-Id: Ie3cf8b4a6c068948d6dc051b12a02474689cf8a8 Implements: blueprint mistral-jinga-templates
22 lines
298 B
YAML
22 lines
298 B
YAML
---
|
|
version: "2.0"
|
|
|
|
greeting:
|
|
description: "This action says 'Hello'"
|
|
tags: [hello]
|
|
base: std.echo
|
|
base-input:
|
|
output: 'Hello, {{ _.name }}'
|
|
input:
|
|
- name
|
|
output:
|
|
string: '{{ _ }}'
|
|
|
|
farewell:
|
|
base: std.echo
|
|
base-input:
|
|
output: 'Bye!'
|
|
output:
|
|
info: '{{ _ }}'
|
|
|