Skip to content

Commit d01e12e

Browse files
authored
Merge pull request #248 from common-workflow-language/fix/requirement_class
Fix/requirement class
2 parents 2a35392 + f17fed0 commit d01e12e

File tree

3 files changed

+77
-8
lines changed

3 files changed

+77
-8
lines changed

draft-4/CommandLineTool.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,12 @@ $graph:
611611
environment as defined by Docker.
612612
613613
fields:
614+
- name: "class"
615+
type: "string"
616+
doc: "Always 'DockerRequirement'"
617+
jsonldPredicate:
618+
"_id": "@type"
619+
"_type": "@vocab"
614620
- name: dockerPull
615621
type: ["null", "string"]
616622
doc: "Specify a Docker image to retrieve using `docker pull`."
@@ -653,6 +659,12 @@ $graph:
653659
namespaced. The optional `identifier` field is recommended so that users
654660
and platforms can distinguish between software that has the same name.
655661
fields:
662+
- name: "class"
663+
type: "string"
664+
doc: "Always 'SoftwareRequirement'"
665+
jsonldPredicate:
666+
"_id": "@type"
667+
"_type": "@vocab"
656668
- name: spec
657669
type:
658670
type: array
@@ -728,6 +740,12 @@ $graph:
728740
workflow platform in the designated output directory prior to executing the
729741
command line tool.
730742
fields:
743+
- name: "class"
744+
type: "string"
745+
doc: "InitialWorkDirRequirement"
746+
jsonldPredicate:
747+
"_id": "@type"
748+
"_type": "@vocab"
731749
- name: listing
732750
type:
733751
- type: array
@@ -751,6 +769,12 @@ $graph:
751769
Define a list of environment variables which will be set in the
752770
execution environment of the tool. See `EnvironmentDef` for details.
753771
fields:
772+
- name: "class"
773+
type: "string"
774+
doc: "Always 'EnvVarRequirement'"
775+
jsonldPredicate:
776+
"_id": "@type"
777+
"_type": "@vocab"
754778
- name: envDef
755779
type:
756780
type: "array"
@@ -772,6 +796,13 @@ $graph:
772796
contains `shellQuote: false`. If `shellQuote: false` is specified, the
773797
argument is joined into the command string without quoting, which allows
774798
the use of shell metacharacters such as `|` for pipes.
799+
fields:
800+
- name: "class"
801+
type: "string"
802+
doc: "Always 'ShellCommandRequirement'"
803+
jsonldPredicate:
804+
"_id": "@type"
805+
"_type": "@vocab"
775806

776807

777808
- type: record
@@ -800,6 +831,12 @@ $graph:
800831
If neither "min" nor "max" is specified for a resource, an implementation may provide a default.
801832
802833
fields:
834+
- name: "class"
835+
type: "string"
836+
doc: "Always 'ResourceRequirement'"
837+
jsonldPredicate:
838+
"_id": "@type"
839+
"_type": "@vocab"
803840
- name: coresMin
804841
type: ["null", long, string, "#Expression"]
805842
doc: Minimum reserved number of CPU cores

draft-4/Process.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -608,14 +608,6 @@ $graph:
608608
Process requirements are the primary mechanism for specifying extensions to
609609
the CWL core specification.
610610
611-
fields:
612-
- name: "class"
613-
type: "string"
614-
doc: "The specific requirement type."
615-
jsonldPredicate:
616-
"_id": "@type"
617-
"_type": "@vocab"
618-
619611
620612
- type: record
621613
name: Process
@@ -713,6 +705,12 @@ $graph:
713705
If this requirement is not present, the workflow platform must not perform expression
714706
interpolatation.
715707
fields:
708+
- name: "class"
709+
type: "string"
710+
doc: "Always 'InlineJavascriptRequirement'"
711+
jsonldPredicate:
712+
"_id": "@type"
713+
"_type": "@vocab"
716714
- name: expressionLib
717715
type:
718716
- "null"
@@ -736,6 +734,12 @@ $graph:
736734
processed in the order listed such that later schema definitions may refer
737735
to earlier schema definitions.
738736
fields:
737+
- name: "class"
738+
type: "string"
739+
doc: "Always 'SchemaDefRequirement'"
740+
jsonldPredicate:
741+
"_id": "@type"
742+
"_type": "@vocab"
739743
- name: types
740744
type:
741745
type: array

draft-4/Workflow.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,24 +506,52 @@ $graph:
506506
doc: |
507507
Indicates that the workflow platform must support nested workflows in
508508
the `run` field of [WorkflowStep](#WorkflowStep).
509+
fields:
510+
- name: "class"
511+
type: "string"
512+
doc: "Always 'SubworkflowFeatureRequirement'"
513+
jsonldPredicate:
514+
"_id": "@type"
515+
"_type": "@vocab"
509516

510517
- name: ScatterFeatureRequirement
511518
type: record
512519
extends: ProcessRequirement
513520
doc: |
514521
Indicates that the workflow platform must support the `scatter` and
515522
`scatterMethod` fields of [WorkflowStep](#WorkflowStep).
523+
fields:
524+
- name: "class"
525+
type: "string"
526+
doc: "Always 'ScatterFeatureRequirement'"
527+
jsonldPredicate:
528+
"_id": "@type"
529+
"_type": "@vocab"
516530

517531
- name: MultipleInputFeatureRequirement
518532
type: record
519533
extends: ProcessRequirement
520534
doc: |
521535
Indicates that the workflow platform must support multiple inbound data links
522536
listed in the `source` field of [WorkflowStepInput](#WorkflowStepInput).
537+
fields:
538+
- name: "class"
539+
type: "string"
540+
doc: "Always 'MultipleInputFeatureRequirement'"
541+
jsonldPredicate:
542+
"_id": "@type"
543+
"_type": "@vocab"
523544

524545
- type: record
525546
name: StepInputExpressionRequirement
526547
extends: ProcessRequirement
527548
doc: |
528549
Indicate that the workflow platform must support the `valueFrom` field
529550
of [WorkflowStepInput](#WorkflowStepInput).
551+
fields:
552+
- name: "class"
553+
type: "string"
554+
doc: "Always 'StepInputExpressionRequirement'"
555+
jsonldPredicate:
556+
"_id": "@type"
557+
"_type": "@vocab"

0 commit comments

Comments
 (0)