Skip to content

Commit dba242f

Browse files
committed
Squashed 'cwltool/schemas/' changes from 50bd76a..3e1b02c
3e1b02c Merge commit '6ac559ed62780091eb0cfff914018ed101ef46ef' into scoped-ref-and-typedsl 6ac559e version bump 2cfde6b Merge pull request #32 from common-workflow-language/type_dsl b8edddc re-enable test_avro_regression bedb736 Merge branch 'type_dsl' of github.com:common-workflow-language/schema_salad into type_dsl e93b038 Add missing file 9ca6cc9 remove more str types, possible fix for edam failed test d65fb83 more unicode 4350b30 type clarification 96f08e8 Merge remote-tracking branch 'origin/master' into type_dsl 57f7e83 borrow the updated re.pyi from typeshed c03eb1e type fixes 6e71f35 Merge remote-tracking branch 'origin/master' into type_dsl 68a5c6c More updating to draft-4.dev2 97e8f75 More updating to draft-4.dev2 e554b2b Merge pull request #33 from common-workflow-language/fix-resolve_all_refactor ad34521 fix bug introduced by refactor 5393edc fixes types, removes a few more Anys e298bdc Detect when an abstract class is used but doesn't have a concrete subtype. git-subtree-dir: cwltool/schemas git-subtree-split: 3e1b02c
1 parent 05a4b2b commit dba242f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+492
-307
lines changed

draft-4/draft-4/count-lines1-wf.cwl

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ inputs:
99
outputs:
1010
count_output:
1111
type: int
12-
source: step2/output
12+
outputSource: step2/output
1313

1414
steps:
1515
step1:
1616
run: wc-tool.cwl
1717
in:
18-
file1: "#file1"
18+
file1: file1
1919
out: [output]
2020

2121
step2:
2222
run: parseInt-tool.cwl
2323
in:
24-
file1: "#step1/output"
24+
file1: step1/output
2525
out: [output]

draft-4/draft-4/count-lines2-wf.cwl

+3-4
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ inputs:
1111
outputs:
1212
count_output:
1313
type: int
14-
source: "#step2/parseInt_output"
14+
outputSource: step2/parseInt_output
1515

1616
steps:
1717
step1:
1818
in:
19-
wc_file1:
20-
source: "#file1"
19+
wc_file1: file1
2120
out: [wc_output]
2221
run:
2322
id: wc
@@ -36,7 +35,7 @@ steps:
3635

3736
step2:
3837
in:
39-
parseInt_file1: "#step1/wc_output"
38+
parseInt_file1: step1/wc_output
4039
out: [parseInt_output]
4140
run:
4241
class: ExpressionTool

draft-4/draft-4/count-lines3-wf.cwl

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ cwlVersion: cwl:draft-4.dev2
44

55
inputs:
66
file1:
7-
type: { type: array, items: File }
7+
type: File[]
88

99
outputs:
1010
count_output:
11-
type: { type: array, items: int }
12-
source: "#step1/output"
11+
type: int[]
12+
outputSource: step1/output
1313

1414
requirements:
1515
ScatterFeatureRequirement: {}
1616

1717
steps:
1818
step1:
1919
run: wc2-tool.cwl
20-
scatter: "#step1/file1"
20+
scatter: file1
2121
in:
22-
file1: "#file1"
22+
file1: file1
2323
out: [output]

draft-4/draft-4/count-lines4-wf.cwl

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ inputs:
1010

1111
outputs:
1212
count_output:
13-
type: {type: array, items: int}
14-
source: "#step1/output"
13+
type: int[]
14+
outputSource: step1/output
1515

1616
requirements:
1717
- class: ScatterFeatureRequirement
@@ -20,7 +20,7 @@ requirements:
2020
steps:
2121
step1:
2222
run: wc2-tool.cwl
23-
scatter: "#step1/file1"
23+
scatter: file1
2424
in:
25-
file1: ["#file1", "#file2"]
25+
file1: [file1, file2]
2626
out: [output]

draft-4/draft-4/count-lines5-wf.cwl

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ inputs:
99
outputs:
1010
count_output:
1111
type: int
12-
source: "#step1/output"
12+
outputSource: step1/output
1313
steps:
1414
step1:
1515
run: wc2-tool.cwl
1616
in:
17-
file1:
18-
source: "#file1"
17+
file1: file1
1918
out: [output]

draft-4/draft-4/count-lines6-wf.cwl

+6-8
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ class: Workflow
33
cwlVersion: cwl:draft-4.dev2
44

55
inputs:
6-
file1:
7-
type: {type: array, items: File}
8-
file2:
9-
type: {type: array, items: File}
6+
file1: File[]
7+
file2: File[]
108

119
outputs:
1210
count_output:
13-
type: {type: array, items: int}
14-
source: "#step1/output"
11+
type: int[]
12+
outputSource: step1/output
1513

1614
requirements:
1715
- class: ScatterFeatureRequirement
@@ -20,9 +18,9 @@ requirements:
2018
steps:
2119
step1:
2220
run: wc3-tool.cwl
23-
scatter: "#step1/file1"
21+
scatter: file1
2422
in:
2523
file1:
26-
source: ["#file1", "#file2"]
24+
source: [file1, file2]
2725
linkMerge: merge_nested
2826
out: [output]

draft-4/draft-4/count-lines7-wf.cwl

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ requirements:
77

88
inputs:
99
file1:
10-
type: {type: array, items: File}
10+
type: File[]
1111
file2:
12-
type: {type: array, items: File}
12+
type: File[]
1313

1414
outputs:
1515
count_output:
1616
type: int
17-
source: "#step1/output"
17+
outputSource: step1/output
1818

1919
steps:
2020
step1:
2121
run: wc3-tool.cwl
2222
in:
2323
file1:
24-
source: ["#file1", "#file2"]
24+
source: [file1, file2]
2525
linkMerge: merge_flattened
2626
out: [output]

draft-4/draft-4/count-lines8-wf.cwl

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ class: Workflow
33
cwlVersion: cwl:draft-4.dev2
44

55
inputs:
6-
file1:
7-
type: File
6+
file1: File
87

98
outputs:
109
count_output:
1110
type: int
12-
source: "#step1/count_output"
11+
outputSource: step1/count_output
1312

1413
requirements:
1514
- class: SubworkflowFeatureRequirement
@@ -18,5 +17,5 @@ steps:
1817
step1:
1918
run: count-lines1-wf.cwl
2019
in:
21-
file1: "#file1"
20+
file1: file1
2221
out: [count_output]

draft-4/draft-4/count-lines9-wf.cwl

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ inputs: []
77
outputs:
88
count_output:
99
type: int
10-
source: "#step2/output"
10+
outputSource: step2/output
1111

1212
steps:
1313
step1:
@@ -22,5 +22,5 @@ steps:
2222
step2:
2323
run: parseInt-tool.cwl
2424
in:
25-
file1: "#step1/output"
25+
file1: step1/output
2626
out: [output]

draft-4/draft-4/env-tool1.cwl

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
class: CommandLineTool
22
cwlVersion: cwl:draft-4.dev2
33
inputs:
4-
in:
5-
type: string
4+
in: string
65
outputs:
76
out:
87
type: File

draft-4/draft-4/env-wf1.cwl

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
outputs:
99
out:
1010
type: File
11-
source: "#step1/out"
11+
outputSource: step1/out
1212

1313
requirements:
1414
- class: SubworkflowFeatureRequirement
@@ -20,5 +20,5 @@ steps:
2020
step1:
2121
run: env-tool1.cwl
2222
in:
23-
in: "#in"
23+
in: in
2424
out: [out]

draft-4/draft-4/env-wf2.cwl

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
outputs:
99
out:
1010
type: File
11-
source: "#step1/out"
11+
outputSource: step1/out
1212

1313
requirements:
1414
- class: SubworkflowFeatureRequirement
@@ -20,5 +20,5 @@ steps:
2020
step1:
2121
run: env-tool2.cwl
2222
in:
23-
in: "#in"
23+
in: in
2424
out: [out]

draft-4/draft-4/glob-expr-list.cwl

+2-6
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@ cwlVersion: cwl:draft-4.dev2
33

44
inputs:
55
ids:
6-
type:
7-
type: array
8-
items: string
6+
type: string[]
97
inputBinding:
108
position: 1
119

1210
outputs:
1311
files:
14-
type:
15-
type: array
16-
items: File
12+
type: File[]
1713
outputBinding:
1814
glob: $(inputs.ids)
1915

draft-4/draft-4/metadata.cwl

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ inputs:
2424
type: File
2525
inputBinding: {position: 1}
2626
numbering:
27-
type: ["null", boolean]
27+
type: boolean?
2828
inputBinding:
2929
position: 0
3030
prefix: -n

draft-4/draft-4/null-expression1-tool.cwl

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ inputs:
1111
default: "the-default"
1212

1313
outputs:
14-
output:
15-
type: int
14+
output: int
1615

1716
expression: "$({'output': (inputs.i1 == 'the-default' ? 1 : 2)})"

draft-4/draft-4/null-expression2-tool.cwl

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ requirements:
66
cwlVersion: cwl:draft-4.dev2
77

88
inputs:
9-
i1:
10-
type: Any
9+
i1: Any
1110

1211
outputs:
13-
output:
14-
type: int
12+
output: int
1513

1614
expression: "$({'output': (inputs.i1 == 'the-default' ? 1 : 2)})"

draft-4/draft-4/optional-output.cwl

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ outputs:
1919
secondaryFiles:
2020
- .idx
2121
optional_file:
22-
type: ["null", File]
22+
type: File?
2323
outputBinding:
2424
glob: bumble.txt
2525
baseCommand: cat

draft-4/draft-4/parseInt-tool.cwl

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ inputs:
1111
inputBinding: { loadContents: true }
1212

1313
outputs:
14-
output:
15-
type: int
14+
output: int
1615

1716
expression: "$({'output': parseInt(inputs.file1.contents)})"

draft-4/draft-4/rename.cwl

+2-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ requirements:
77
- filename: $(inputs.newname)
88
fileContent: $(inputs.srcfile)
99
inputs:
10-
srcfile:
11-
type: File
12-
newname:
13-
type: string
10+
srcfile: File
11+
newname: string
1412
outputs:
1513
outfile:
1614
type: File

draft-4/draft-4/revsort.cwl

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ inputs:
3737
outputs:
3838
output:
3939
type: File
40-
source: "#sorted/output"
40+
outputSource: sorted/output
4141
description: "The output with the lines reversed and sorted."
4242

4343
# The "steps" array lists the executable steps that make up the workflow.
@@ -53,13 +53,13 @@ outputs:
5353
steps:
5454
rev:
5555
in:
56-
input: "#input"
56+
input: input
5757
out: [output]
5858
run: revtool.cwl
5959

6060
sorted:
6161
in:
62-
input: "#rev/output"
63-
reverse: "#reverse_sort"
62+
input: rev/output
63+
reverse: reverse_sort
6464
out: [output]
6565
run: sorttool.cwl

draft-4/draft-4/scatter-valuefrom-wf1.cwl

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ outputs:
1616
type:
1717
type: array
1818
items: string
19-
source: "#step1/echo_out"
19+
outputSource: step1/echo_out
2020

2121
requirements:
2222
- class: ScatterFeatureRequirement
@@ -26,13 +26,13 @@ steps:
2626
step1:
2727
in:
2828
echo_in:
29-
source: "#inp"
29+
source: inp
3030
valueFrom: $(self.instr)
3131
first:
32-
source: "#inp"
32+
source: inp
3333
valueFrom: "$(self[0].instr)"
3434
out: [echo_out]
35-
scatter: "#step1/echo_in"
35+
scatter: echo_in
3636
run:
3737
class: CommandLineTool
3838
inputs:

0 commit comments

Comments
 (0)