Skip to content

Commit 4e41436

Browse files
committed
fix: workflow schema changes
1 parent 94d99e9 commit 4e41436

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
.coverage
22
dist/
33
**/__pycache__/
4+
5+
6+
*~
7+
\#*#
8+
\#*
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
kind: DataManagerWorkflow
3+
kind-version: "2024.1"
4+
name: simple-linear-workflow
5+
description: An experimental workflow
6+
steps:
7+
- name: step-1
8+
description: The first step
9+
specification: '{"collection":"im-test","job":"process-a","version":"1.0.0", "variables":{"x": 7}}'
10+
inputs:
11+
- input: 'inputFile'
12+
outputs:
13+
- output: 'outputFile'
14+
as: 'a.sdf'
15+
- name: step-2
16+
specification: '{"collection":"im-test","job":"process-b","version":"1.0.0", "variables":{"y": 22}}'
17+
inputs:
18+
- input: 'inputFile'
19+
from:
20+
step: step-1
21+
output: 'outputFile'
22+
outputs:
23+
- output: 'outputFile'
24+
as: 'b.sdf'

workflow/workflow-schema.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ definitions:
4545

4646
step:
4747
type: object
48+
additionalProperties: false
4849
properties:
4950
name:
5051
$ref: '#/definitions/rfc1035-label-name'
@@ -54,6 +55,43 @@ definitions:
5455
specification:
5556
type: string
5657
description: The Data Manager Job Specification, a JSON string
58+
inputs:
59+
type: array
60+
description: Input parameters
61+
items:
62+
type: object
63+
properties:
64+
input:
65+
type: string
66+
from:
67+
type: object
68+
properties:
69+
step:
70+
type: string
71+
output:
72+
type: string
73+
required: [step, output]
74+
required: [input]
75+
anyOf:
76+
- properties:
77+
from:
78+
type: object
79+
required: [step, output]
80+
- properties:
81+
from:
82+
type: "null"
83+
outputs:
84+
type: array
85+
description: Output parameters
86+
items:
87+
type: object
88+
properties:
89+
input:
90+
type: string
91+
as:
92+
type: string
5793
required:
5894
- name
5995
- specification
96+
- inputs
97+
- outputs

0 commit comments

Comments
 (0)