Skip to content

Commit 6143af6

Browse files
committed
fix: variable section in workflow definition renamed
Renamed to variable-mapping
1 parent afb2a46 commit 6143af6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

workflow/decoder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def get_variable_names(definition: dict[str, Any]) -> list[str]:
6868
outputs and options. This function DOES NOT de-duplicate names,
6969
that is the role of the validator."""
7070
wf_variable_names: list[str] = []
71-
variables: dict[str, Any] | None = definition.get("variables")
71+
variables: dict[str, Any] | None = definition.get("variable-mapping")
7272
if variables:
7373
wf_variable_names.extend(
7474
input_variable["name"] for input_variable in variables.get("inputs", [])
@@ -112,7 +112,7 @@ def set_variables_from_options_for_step(
112112
assert step_name
113113

114114
result = {}
115-
options = definition.get("variables", {}).get("options", [])
115+
options = definition.get("variable-mapping", {}).get("options", [])
116116

117117
for opt in options:
118118
for step_alias in opt["as"]:
@@ -131,7 +131,7 @@ def get_required_variable_names(definition: dict[str, Any]) -> list[str]:
131131
variables that are required to be defined when it is RUN - i.e.
132132
all those the user needs to provide."""
133133
required_variables: list[str] = []
134-
variables: dict[str, Any] | None = definition.get("variables")
134+
variables: dict[str, Any] | None = definition.get("variable-mapping")
135135
if variables:
136136
# All inputs are required (no defaults atm)...
137137
required_variables.extend(

0 commit comments

Comments
 (0)