@@ -34,6 +34,10 @@ properties:
34
34
type : array
35
35
items :
36
36
$ref : " #/definitions/workflow-input-parameter"
37
+ outputs :
38
+ type : array
39
+ items :
40
+ $ref : " #/definitions/workflow-output-parameter"
37
41
required :
38
42
- kind
39
43
- kind-version
@@ -53,23 +57,56 @@ definitions:
53
57
A value compatible with Kubernetes variables
54
58
to allow it to be used ins Pod Label
55
59
56
- parameter-name :
60
+ # What does a Job specification template variable look like?
61
+ # The values found in Jinja variables like '{{ x }}'.
62
+ # Stuff like 'candidateMolecules' or 'clustered_molecules'
63
+ template-variable-name :
57
64
type : string
58
- pattern : ^[a-zA-Z_][a-zA-Z0-9_- ]*$
65
+ pattern : ^[a-zA-Z_][a-zA-Z0-9_]*$
59
66
67
+ # What does a filename look like?
68
+ # We do not (at the moment) permit spaces!
69
+ file-name :
70
+ type : string
71
+ pattern : ^[a-zA-Z0-9._-]+$
72
+
73
+ # An input parameter has a name and a (MIME) type.
60
74
workflow-input-parameter :
61
75
type : object
76
+ additionalProperties : false
77
+ properties :
78
+ name :
79
+ $ref : ' #/definitions/template-variable-name'
80
+ type :
81
+ type : string
82
+ description : The MIME type of the parameter
83
+ required :
84
+ - name
85
+ - type
86
+
87
+ # An workflow output parameter is essentially a file
88
+ # taken from the output of a step with a default (as) value.
89
+ workflow-output-parameter :
90
+ type : object
91
+ additionalProperties : false
62
92
properties :
63
93
name :
64
- $ref : ' #/definitions/parameter-name'
94
+ $ref : ' #/definitions/template-variable-name'
95
+ from :
96
+ $ref : ' #/definitions/from-step-output'
97
+ as :
98
+ $ref : ' #/definitions/file-name'
99
+ required :
100
+ - name
101
+ - as
65
102
66
103
# Declaration of a value from a workflow input (variable)
67
104
from-workflow-input :
68
105
type : object
69
106
additionalProperties : false
70
107
properties :
71
108
workflow-input :
72
- $ref : ' #/definitions/parameter -name'
109
+ $ref : ' #/definitions/template-variable -name'
73
110
required :
74
111
- workflow-input
75
112
@@ -81,7 +118,7 @@ definitions:
81
118
step :
82
119
$ref : ' #/definitions/rfc1035-label-name'
83
120
output :
84
- $ref : ' #/definitions/parameter -name'
121
+ $ref : ' #/definitions/template-variable -name'
85
122
required :
86
123
- step
87
124
- output
@@ -92,39 +129,42 @@ definitions:
92
129
additionalProperties : false
93
130
properties :
94
131
input :
95
- $ref : ' #/definitions/parameter -name'
132
+ $ref : ' #/definitions/template-variable -name'
96
133
from :
97
134
$ref : ' #/definitions/from-step-output'
98
135
required :
99
136
- input
100
137
138
+ # A Step input (from a workflow input)
101
139
step-input-from-workflow :
102
140
type : object
103
141
additionalProperties : false
104
142
properties :
105
143
input :
106
- $ref : ' #/definitions/parameter -name'
144
+ $ref : ' #/definitions/template-variable -name'
107
145
from :
108
146
$ref : ' #/definitions/from-workflow-input'
109
147
required :
110
148
- input
149
+ - from
111
150
112
151
# A Step output (with an 'as' - a declared value)
113
152
step-output-as :
114
153
type : object
115
154
additionalProperties : false
116
155
properties :
117
156
output :
118
- $ref : ' #/definitions/parameter -name'
157
+ $ref : ' #/definitions/template-variable -name'
119
158
as :
120
- type : string
121
- description : The value to set the parameter to
159
+ $ref : ' #/definitions/file-name'
122
160
required :
123
161
- output
124
162
- as
125
163
164
+ # Steps (in a workflow)
126
165
step :
127
166
type : object
167
+ additionalProperties : false
128
168
properties :
129
169
name :
130
170
$ref : ' #/definitions/rfc1035-label-name'
0 commit comments