Skip to content

Commit dd28c71

Browse files
committed
Squashed 'cwltool/schemas/' changes from 0c275b4..272aefa
272aefa Merge pull request #231 from common-workflow-language/restore-workflow-outparam-type 3940210 re-add types to ExpressionTool, InputParameter git-subtree-dir: cwltool/schemas git-subtree-split: 272aefa
1 parent ef67193 commit dd28c71

File tree

3 files changed

+57
-31
lines changed

3 files changed

+57
-31
lines changed

draft-4/CommandLineTool.yml

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -359,32 +359,14 @@ $graph:
359359
extends: "#InputParameter"
360360
doc: An input parameter for a CommandLineTool.
361361
specialize:
362+
- specializeFrom: "#InputRecordSchema"
363+
specializeTo: "#CommandInputRecordSchema"
364+
- specializeFrom: "#InputEnumSchema"
365+
specializeTo: "#CommandInputEnumSchema"
366+
- specializeFrom: "#InputArraySchema"
367+
specializeTo: "#CommandInputArraySchema"
362368
- specializeFrom: "#InputBinding"
363369
specializeTo: "#CommandLineBinding"
364-
fields:
365-
- name: type
366-
type:
367-
- "null"
368-
- "#CWLType"
369-
- "#CommandInputRecordSchema"
370-
- "#CommandInputEnumSchema"
371-
- "#CommandInputArraySchema"
372-
- string
373-
- type: array
374-
items:
375-
- "#CWLType"
376-
- "#CommandInputRecordSchema"
377-
- "#CommandInputEnumSchema"
378-
- "#CommandInputArraySchema"
379-
- string
380-
jsonldPredicate:
381-
"_id": "sld:type"
382-
"_type": "@vocab"
383-
refScope: 2
384-
typeDSL: True
385-
doc: |
386-
Specify valid types of data that may be assigned to this parameter.
387-
388370

389371
- type: record
390372
name: CommandOutputParameter

draft-4/Process.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -370,13 +370,6 @@ $graph:
370370
- name: InputParameter
371371
type: record
372372
extends: "#Parameter"
373-
specialize:
374-
- specializeFrom: "sld:RecordSchema"
375-
specializeTo: "#InputRecordSchema"
376-
- specializeFrom: "sld:EnumSchema"
377-
specializeTo: "#InputEnumSchema"
378-
- specializeFrom: "sld:ArraySchema"
379-
specializeTo: "#InputArraySchema"
380373
fields:
381374
- name: id
382375
type: string
@@ -397,6 +390,28 @@ $graph:
397390
The default value for this parameter if not provided in the input
398391
object.
399392
393+
- name: type
394+
type:
395+
- "null"
396+
- "#CWLType"
397+
- "#InputRecordSchema"
398+
- "#InputEnumSchema"
399+
- "#InputArraySchema"
400+
- string
401+
- type: array
402+
items:
403+
- "#CWLType"
404+
- "#InputRecordSchema"
405+
- "#InputEnumSchema"
406+
- "#InputArraySchema"
407+
- string
408+
jsonldPredicate:
409+
"_id": "sld:type"
410+
"_type": "@vocab"
411+
refScope: 2
412+
typeDSL: True
413+
doc: |
414+
Specify valid types of data that may be assigned to this parameter.
400415
401416
- name: OutputParameter
402417
type: record

draft-4/Workflow.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,39 @@ $graph:
5050
5151
- {$include: concepts.md}
5252

53+
- name: ExpressionToolOutputParameter
54+
type: record
55+
extends: Parameter
56+
fields:
57+
- name: type
58+
type:
59+
- "null"
60+
- "#CWLType"
61+
- "sld:RecordSchema"
62+
- "sld:EnumSchema"
63+
- "sld:ArraySchema"
64+
- string
65+
- type: array
66+
items:
67+
- "#CWLType"
68+
- "sld:RecordSchema"
69+
- "sld:EnumSchema"
70+
- "sld:ArraySchema"
71+
- string
72+
jsonldPredicate:
73+
"_id": "sld:type"
74+
"_type": "@vocab"
75+
refScope: 2
76+
typeDSL: True
77+
doc: |
78+
Specify valid types of data that may be assigned to this parameter.
5379
5480
- type: record
5581
name: ExpressionTool
5682
extends: Process
83+
specialize:
84+
- specializeFrom: "#OutputParameter"
85+
specializeTo: "#ExpressionToolOutputParameter"
5786
documentRoot: true
5887
doc: |
5988
Execute an expression as a process step.

0 commit comments

Comments
 (0)