check multi attribut in variable calculation #9

Open
opened 2024-03-29 07:46:21 +01:00 by egarette · 0 comments
Owner

This example should generate an error:

my_ori_variable:
  multi: true
my_variable:
  default:
    type: variable
    variable: rougail.my_ori_variable

my_variable should be a multi too!

For follower variable:

  • this is valid:
leadership:
  type: leadership
  leader:
    multi: true
  my_variable1:
  my_variable2:
    default:
      type: variable
      variable: rougail.leadership.my_variable1
  • this is not valid:
leadership:
  type: leadership
  leader:
    multi: true
  my_variable1:
my_variable2:
  default:
    type: variable
    variable: rougail.leadership.my_variable1

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

This example should generate an error: ``` my_ori_variable: multi: true my_variable: default: type: variable variable: rougail.my_ori_variable ``` my_variable should be a multi too! For follower variable: * this is valid: ``` leadership: type: leadership leader: multi: true my_variable1: my_variable2: default: type: variable variable: rougail.leadership.my_variable1 ``` * this is not valid: ``` leadership: type: leadership leader: multi: true my_variable1: my_variable2: default: type: variable variable: rougail.leadership.my_variable1 ``` **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#9
No description provided.