File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 4
4
'''
5
5
6
6
7
- def validate (input , validation_source ):
7
+ def validate (job_input , validation_source ):
8
8
'''
9
9
Validates the input.
10
10
Checks to see if the provided inputs match the expected types.
@@ -13,11 +13,11 @@ def validate(input, validation_source):
13
13
input_errors = []
14
14
15
15
for key , value in validation_source .items ():
16
- if value ['required' ] and key not in input :
16
+ if value ['required' ] and key not in job_input :
17
17
input_errors .append (f"{ key } is a required input." )
18
18
19
- if key in input and not isinstance (input [key ], value ['type' ]):
19
+ if key in job_input and not isinstance (job_input [key ], value ['type' ]):
20
20
input_errors .append (
21
- f"{ key } should be { value ['type' ]} type, not { type (input [key ])} ." )
21
+ f"{ key } should be { value ['type' ]} type, not { type (job_input [key ])} ." )
22
22
23
23
return input_errors
You can’t perform that action at this time.
0 commit comments