File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -514,12 +514,18 @@ def empty_inputs(
514514 result [param .id .split ("#" )[- 1 ]] = example_input (param .type )
515515 else :
516516 for param in process_or_step .in_ :
517- try :
518- result [param .id .split ("/" )[- 1 ]] = example_input (
519- type_for_source (process_or_step .run , param .source , parent )
520- )
521- except WorkflowException :
522- pass
517+ param_id = param .id .split ("/" )[- 1 ]
518+ if param .source is None and param .valueFrom :
519+ result [param_id ] = example_input ("string" )
520+ elif param .source is None and param .default :
521+ result [param_id ] = param .default
522+ else :
523+ try :
524+ result [param_id ] = example_input (
525+ type_for_source (process_or_step .run , param .source , parent )
526+ )
527+ except WorkflowException :
528+ pass
523529 return result
524530
525531
You can’t perform that action at this time.
0 commit comments