Skip to content

Commit c7e257f

Browse files
author
boysha
committed
No class field in ProcessRequirement, added class field to all requirements.
1 parent b16ae29 commit c7e257f

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
@@ -565,6 +565,12 @@ $graph:
565565
environment as defined by Docker.
566566
567567
fields:
568+
- name: "class"
569+
type: "string"
570+
doc: "Always 'DockerRequirement'"
571+
jsonldPredicate:
572+
"_id": "@type"
573+
"_type": "@vocab"
568574
- name: dockerPull
569575
type: ["null", "string"]
570576
doc: "Specify a Docker image to retrieve using `docker pull`."
@@ -607,6 +613,12 @@ $graph:
607613
namespaced. The optional `identifier` field is recommended so that users
608614
and platforms can distinguish between software that has the same name.
609615
fields:
616+
- name: "class"
617+
type: "string"
618+
doc: "Always 'SoftwareRequirement'"
619+
jsonldPredicate:
620+
"_id": "@type"
621+
"_type": "@vocab"
610622
- name: spec
611623
type:
612624
type: array
@@ -682,6 +694,12 @@ $graph:
682694
workflow platform in the designated output directory prior to executing the
683695
command line tool.
684696
fields:
697+
- name: "class"
698+
type: "string"
699+
doc: "InitialWorkDirRequirement"
700+
jsonldPredicate:
701+
"_id": "@type"
702+
"_type": "@vocab"
685703
- name: listing
686704
type:
687705
- type: array
@@ -705,6 +723,12 @@ $graph:
705723
Define a list of environment variables which will be set in the
706724
execution environment of the tool. See `EnvironmentDef` for details.
707725
fields:
726+
- name: "class"
727+
type: "string"
728+
doc: "Always 'EnvVarRequirement'"
729+
jsonldPredicate:
730+
"_id": "@type"
731+
"_type": "@vocab"
708732
- name: envDef
709733
type:
710734
type: "array"
@@ -726,6 +750,13 @@ $graph:
726750
contains `shellQuote: false`. If `shellQuote: false` is specified, the
727751
argument is joined into the command string without quoting, which allows
728752
the use of shell metacharacters such as `|` for pipes.
753+
fields:
754+
- name: "class"
755+
type: "string"
756+
doc: "Always 'ShellCommandRequirement'"
757+
jsonldPredicate:
758+
"_id": "@type"
759+
"_type": "@vocab"
729760

730761

731762
- type: record
@@ -754,6 +785,12 @@ $graph:
754785
If neither "min" nor "max" is specified for a resource, an implementation may provide a default.
755786
756787
fields:
788+
- name: "class"
789+
type: "string"
790+
doc: "Always 'ResourceRequirement'"
791+
jsonldPredicate:
792+
"_id": "@type"
793+
"_type": "@vocab"
757794
- name: coresMin
758795
type: ["null", long, string, "#Expression"]
759796
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
@@ -592,14 +592,6 @@ $graph:
592592
Process requirements are the primary mechanism for specifying extensions to
593593
the CWL core specification.
594594
595-
fields:
596-
- name: "class"
597-
type: "string"
598-
doc: "The specific requirement type."
599-
jsonldPredicate:
600-
"_id": "@type"
601-
"_type": "@vocab"
602-
603595
604596
- type: record
605597
name: Process
@@ -698,6 +690,12 @@ $graph:
698690
If this requirement is not present, the workflow platform must not perform expression
699691
interpolatation.
700692
fields:
693+
- name: "class"
694+
type: "string"
695+
doc: "Always 'InlineJavascriptRequirement'"
696+
jsonldPredicate:
697+
"_id": "@type"
698+
"_type": "@vocab"
701699
- name: expressionLib
702700
type:
703701
- "null"
@@ -721,6 +719,12 @@ $graph:
721719
processed in the order listed such that later schema definitions may refer
722720
to earlier schema definitions.
723721
fields:
722+
- name: "class"
723+
type: "string"
724+
doc: "Always 'SchemaDefRequirement'"
725+
jsonldPredicate:
726+
"_id": "@type"
727+
"_type": "@vocab"
724728
- name: types
725729
type:
726730
type: array

draft-4/Workflow.yml

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

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

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

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

0 commit comments

Comments
 (0)