@@ -27,6 +27,13 @@ properties:
2727 type : array
2828 items :
2929 $ref : " #/definitions/step"
30+ variables :
31+ type : object
32+ properties :
33+ inputs :
34+ type : array
35+ items :
36+ $ref : " #/definitions/workflow-input-parameter"
3037required :
3138- kind
3239- kind-version
@@ -46,21 +53,35 @@ definitions:
4653 A value compatible with Kubernetes variables
4754 to allow it to be used ins Pod Label
4855
49- variable -name :
56+ parameter -name :
5057 type : string
51- pattern : ^[a-zA-Z_][a-zA-Z0-9_]{,63}$
52- description : >-
53- A Job/Step variable name, as used in the Data Manager Job Specification
58+ pattern : ^[a-zA-Z_][a-zA-Z0-9_-]*$
5459
55- # Declaration of a step from anotehr step
60+ workflow-input-parameter :
61+ type : object
62+ properties :
63+ name :
64+ $ref : ' #/definitions/parameter-name'
65+
66+ # Declaration of a value from a workflow input (variable)
67+ from-workflow-input :
68+ type : object
69+ additionalProperties : false
70+ properties :
71+ workflow-input :
72+ $ref : ' #/definitions/parameter-name'
73+ required :
74+ - workflow-input
75+
76+ # Declaration of a value from another step
5677 from-step-output :
5778 type : object
5879 additionalProperties : false
5980 properties :
6081 step :
6182 $ref : ' #/definitions/rfc1035-label-name'
6283 output :
63- $ref : ' #/definitions/variable -name'
84+ $ref : ' #/definitions/parameter -name'
6485 required :
6586 - step
6687 - output
@@ -71,22 +92,33 @@ definitions:
7192 additionalProperties : false
7293 properties :
7394 input :
74- $ref : ' #/definitions/variable -name'
95+ $ref : ' #/definitions/parameter -name'
7596 from :
7697 $ref : ' #/definitions/from-step-output'
7798 required :
7899 - input
79100
101+ step-input-from-workflow :
102+ type : object
103+ additionalProperties : false
104+ properties :
105+ input :
106+ $ref : ' #/definitions/parameter-name'
107+ from :
108+ $ref : ' #/definitions/from-workflow-input'
109+ required :
110+ - input
111+
80112 # A Step output (with an 'as' - a declared value)
81113 step-output-as :
82114 type : object
83115 additionalProperties : false
84116 properties :
85117 output :
86- $ref : ' #/definitions/variable -name'
118+ $ref : ' #/definitions/parameter -name'
87119 as :
88120 type : string
89- description : The value to set the variable to
121+ description : The value to set the parameter to
90122 required :
91123 - output
92124 - as
@@ -105,12 +137,13 @@ definitions:
105137 inputs :
106138 type : array
107139 items :
108- oneOf :
140+ anyOf :
109141 - $ref : " #/definitions/step-input-from-step"
142+ - $ref : " #/definitions/step-input-from-workflow"
110143 outputs :
111144 type : array
112145 items :
113- oneOf :
146+ anyOf :
114147 - $ref : " #/definitions/step-output-as"
115148 required :
116149 - name
0 commit comments