Type in calculation or type should not be mandatory #12

Open
opened 2024-04-09 10:04:02 +02:00 by egarette · 0 comments
Owner
my_calculated_variable:
  default:
    type: jinja
    jinja: "{{ param1 }}{% if param2 is defined %}_{{ param2 }}{% endif %}_{{ param3 }}"
    params:
      param1: value
      param2:
        type: variable
        variable: rougail.unknown_variable
        optional: true
      param3:
        type: information
        information: doc
        variable: rougail.my_calculated_variable

Could be resume to:

my_calculated_variable:
  default:
    jinja: "{{ param1 }}{% if param2 is defined %}_{{ param2 }}{% endif %}_{{ param3 }}"
    params:
      param1: value
      param2:
        variable: rougail.unknown_variable
        optional: true
      param3:
        information: doc
        variable: rougail.my_calculated_variable

Please note that this behavior is only valid with format version 1.1 or higher.

``` my_calculated_variable: default: type: jinja jinja: "{{ param1 }}{% if param2 is defined %}_{{ param2 }}{% endif %}_{{ param3 }}" params: param1: value param2: type: variable variable: rougail.unknown_variable optional: true param3: type: information information: doc variable: rougail.my_calculated_variable ``` Could be resume to: ``` my_calculated_variable: default: jinja: "{{ param1 }}{% if param2 is defined %}_{{ param2 }}{% endif %}_{{ param3 }}" params: param1: value param2: variable: rougail.unknown_variable optional: true param3: information: doc variable: rougail.my_calculated_variable ``` **Please note that this behavior is only valid with format version 1.1 or higher.**
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: stove/rougail#12
No description provided.