Skip to content

Commit 91e0300

Browse files
authored
"id" is a required field in for Parameters and WorkflowSteps (#300)
1 parent d07da91 commit 91e0300

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

Process.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,17 @@ $graph:
7171
doc: "The unique identifier for this object."
7272

7373

74+
- name: IdentifierRequired
75+
type: record
76+
extends: [Identified]
77+
abstract: true
78+
fields:
79+
- name: id
80+
type: string
81+
jsonldPredicate: "@id"
82+
doc: "The unique identifier for this object."
83+
84+
7485
- name: LoadListingEnum
7586
type: enum
7687
symbols: [no_listing, shallow_listing, deep_listing]
@@ -232,10 +243,15 @@ $graph:
232243
233244
- name: Parameter
234245
type: record
235-
extends: [FieldBase, sld:Documented, Identified]
246+
extends: [FieldBase, sld:Documented, IdentifierRequired]
236247
abstract: true
237248
doc: |
238249
Define an input or output parameter to a process.
250+
fields:
251+
- name: id
252+
type: string
253+
jsonldPredicate: "@id"
254+
doc: "The unique identifier for this Parameter."
239255

240256

241257
- type: enum

Workflow.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ $graph:
471471
472472
- type: record
473473
name: WorkflowStepInput
474-
extends: [Identified, Sink, LoadContents, Labeled]
474+
extends: [IdentifierRequired, Sink, LoadContents, Labeled]
475475
docParent: "#WorkflowStep"
476476
doc: |
477477
The input of a workflow step connects an upstream parameter (from the
@@ -584,6 +584,10 @@ $graph:
584584
should be filtered out.
585585
586586
fields:
587+
- name: id
588+
type: string
589+
jsonldPredicate: "@id"
590+
doc: "The unique identifier of the source input field name."
587591
- name: default
588592
type: CWLObjectType?
589593
doc: |
@@ -628,7 +632,7 @@ $graph:
628632
- type: record
629633
name: WorkflowStepOutput
630634
docParent: "#WorkflowStep"
631-
extends: Identified
635+
extends: IdentifierRequired
632636
doc: |
633637
Associate an output parameter of the underlying process with a workflow
634638
parameter. The workflow parameter (given in the `id` field) be may be used
@@ -638,6 +642,11 @@ $graph:
638642
A unique identifier for this workflow output parameter. This is
639643
the identifier to use in the `source` field of `WorkflowStepInput`
640644
to connect the output value to downstream parameters.
645+
fields:
646+
- name: id
647+
type: string
648+
jsonldPredicate: "@id"
649+
doc: "The unique identifier of the workflow parameter to export."
641650

642651

643652
- name: ScatterMethod
@@ -652,7 +661,7 @@ $graph:
652661

653662
- name: WorkflowStep
654663
type: record
655-
extends: [Identified, Labeled, sld:Documented]
664+
extends: [IdentifierRequired, Labeled, sld:Documented]
656665
docParent: "#Workflow"
657666
doc: |
658667
A workflow step is an executable element of a workflow. It specifies the
@@ -736,6 +745,10 @@ $graph:
736745
a subworkflow (recursive workflows are not allowed).
737746
738747
fields:
748+
- name: id
749+
type: string
750+
jsonldPredicate: "@id"
751+
doc: "The unique identifier for this WorkflowStep."
739752
- name: in
740753
type: WorkflowStepInput[]
741754
jsonldPredicate:

0 commit comments

Comments
 (0)