File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 5
5
from enum import Enum
6
6
from typing import Any
7
7
8
- from .decoder import get_steps , get_variable_names , validate_schema
8
+ from .decoder import (
9
+ get_required_variable_names ,
10
+ get_steps ,
11
+ get_variable_names ,
12
+ validate_schema ,
13
+ )
9
14
10
15
11
16
class ValidationLevel (Enum ):
@@ -153,8 +158,8 @@ def _validate_run_level(
153
158
error_msg = [f"Specification is missing: { ', ' .join (missing_keys )} " ],
154
159
)
155
160
156
- # We must have values for all the inputs defined in the workflow.
157
- wf_variables : list [str ] = get_variable_names (workflow_definition )
161
+ # We must have values for all the variables defined in the workflow.
162
+ wf_variables : list [str ] = get_required_variable_names (workflow_definition )
158
163
missing_values : list [str ] = []
159
164
missing_values .extend (
160
165
wf_variable
@@ -164,7 +169,9 @@ def _validate_run_level(
164
169
if missing_values :
165
170
return ValidationResult (
166
171
error_num = 3 ,
167
- error_msg = [f"Missing input values for: { ', ' .join (missing_values )} " ],
172
+ error_msg = [
173
+ f"Missing workflow variable values for: { ', ' .join (missing_values )} "
174
+ ],
168
175
)
169
176
170
177
return _VALIDATION_SUCCESS
You can’t perform that action at this time.
0 commit comments