@@ -27,6 +27,13 @@ properties:
27
27
type : array
28
28
items :
29
29
$ref : " #/definitions/step"
30
+ variables :
31
+ type : object
32
+ properties :
33
+ inputs :
34
+ type : array
35
+ items :
36
+ $ref : " #/definitions/workflow-input-parameter"
30
37
required :
31
38
- kind
32
39
- kind-version
@@ -46,21 +53,35 @@ definitions:
46
53
A value compatible with Kubernetes variables
47
54
to allow it to be used ins Pod Label
48
55
49
- variable -name :
56
+ parameter -name :
50
57
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_-]*$
54
59
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
56
77
from-step-output :
57
78
type : object
58
79
additionalProperties : false
59
80
properties :
60
81
step :
61
82
$ref : ' #/definitions/rfc1035-label-name'
62
83
output :
63
- $ref : ' #/definitions/variable -name'
84
+ $ref : ' #/definitions/parameter -name'
64
85
required :
65
86
- step
66
87
- output
@@ -71,22 +92,33 @@ definitions:
71
92
additionalProperties : false
72
93
properties :
73
94
input :
74
- $ref : ' #/definitions/variable -name'
95
+ $ref : ' #/definitions/parameter -name'
75
96
from :
76
97
$ref : ' #/definitions/from-step-output'
77
98
required :
78
99
- input
79
100
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
+
80
112
# A Step output (with an 'as' - a declared value)
81
113
step-output-as :
82
114
type : object
83
115
additionalProperties : false
84
116
properties :
85
117
output :
86
- $ref : ' #/definitions/variable -name'
118
+ $ref : ' #/definitions/parameter -name'
87
119
as :
88
120
type : string
89
- description : The value to set the variable to
121
+ description : The value to set the parameter to
90
122
required :
91
123
- output
92
124
- as
@@ -105,12 +137,13 @@ definitions:
105
137
inputs :
106
138
type : array
107
139
items :
108
- oneOf :
140
+ anyOf :
109
141
- $ref : " #/definitions/step-input-from-step"
142
+ - $ref : " #/definitions/step-input-from-workflow"
110
143
outputs :
111
144
type : array
112
145
items :
113
- oneOf :
146
+ anyOf :
114
147
- $ref : " #/definitions/step-output-as"
115
148
required :
116
149
- name
0 commit comments