Skip to content

Commit 7b4b85e

Browse files
committed
all Requirement classes should be static strings
1 parent 1f3ef88 commit 7b4b85e

File tree

3 files changed

+85
-18
lines changed

3 files changed

+85
-18
lines changed

CommandLineTool.yml

Lines changed: 50 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,11 @@ $graph:
784784
785785
fields:
786786
- name: class
787-
type: string
787+
type:
788+
type: enum
789+
name: DockerRequirement_class
790+
symbols:
791+
- cwl:DockerRequirement
788792
doc: "Always 'DockerRequirement'"
789793
jsonldPredicate:
790794
"_id": "@type"
@@ -826,7 +830,11 @@ $graph:
826830
the defined process.
827831
fields:
828832
- name: class
829-
type: string
833+
type:
834+
type: enum
835+
name: SoftwareRequirement_class
836+
symbols:
837+
- cwl:SoftwareRequirement
830838
doc: "Always 'SoftwareRequirement'"
831839
jsonldPredicate:
832840
"_id": "@type"
@@ -1007,10 +1015,13 @@ $graph:
10071015
Together with `DockerRequirement.dockerOutputDirectory` this it
10081016
possible to control the locations of both input and output files
10091017
when running in containers.
1010-
10111018
fields:
10121019
- name: class
1013-
type: string
1020+
type:
1021+
type: enum
1022+
name: InitialWorkDirRequirement_class
1023+
symbols:
1024+
- cwl:InitialWorkDirRequirement
10141025
doc: InitialWorkDirRequirement
10151026
jsonldPredicate:
10161027
"_id": "@type"
@@ -1066,7 +1077,11 @@ $graph:
10661077
execution environment of the tool. See `EnvironmentDef` for details.
10671078
fields:
10681079
- name: class
1069-
type: string
1080+
type:
1081+
type: enum
1082+
name: EnvVarRequirement_class
1083+
symbols:
1084+
- cwl:EnvVarRequirement
10701085
doc: "Always 'EnvVarRequirement'"
10711086
jsonldPredicate:
10721087
"_id": "@type"
@@ -1092,7 +1107,11 @@ $graph:
10921107
the use of shell metacharacters such as `|` for pipes.
10931108
fields:
10941109
- name: class
1095-
type: string
1110+
type:
1111+
type: enum
1112+
name: ShellCommandRequirement_class
1113+
symbols:
1114+
- cwl:ShellCommandRequirement
10961115
doc: "Always 'ShellCommandRequirement'"
10971116
jsonldPredicate:
10981117
"_id": "@type"
@@ -1131,7 +1150,11 @@ $graph:
11311150
11321151
fields:
11331152
- name: class
1134-
type: string
1153+
type:
1154+
type: enum
1155+
name: ResourceRequirement_class
1156+
symbols:
1157+
- cwl:ResourceRequirement
11351158
doc: "Always 'ResourceRequirement'"
11361159
jsonldPredicate:
11371160
"_id": "@type"
@@ -1242,7 +1265,11 @@ $graph:
12421265
is enabled by default.
12431266
fields:
12441267
- name: class
1245-
type: string
1268+
type:
1269+
type: enum
1270+
name: WorkReuse_class
1271+
symbols:
1272+
- cwl:WorkReuse
12461273
doc: "Always 'WorkReuse'"
12471274
jsonldPredicate:
12481275
"_id": "@type"
@@ -1274,7 +1301,11 @@ $graph:
12741301
12751302
fields:
12761303
- name: class
1277-
type: string
1304+
type:
1305+
type: enum
1306+
name: NetworkAccess_class
1307+
symbols:
1308+
- cwl:NetworkAccess
12781309
doc: "Always 'NetworkAccess'"
12791310
jsonldPredicate:
12801311
"_id": "@type"
@@ -1319,7 +1350,11 @@ $graph:
13191350
13201351
fields:
13211352
class:
1322-
type: string
1353+
type:
1354+
type: enum
1355+
name: InplaceUpdateRequirement_class
1356+
symbols:
1357+
- cwl:InplaceUpdateRequirement
13231358
doc: "Always 'InplaceUpdateRequirement'"
13241359
jsonldPredicate:
13251360
"_id": "@type"
@@ -1340,7 +1375,11 @@ $graph:
13401375
wall-time for the execution of the command line itself.
13411376
fields:
13421377
- name: class
1343-
type: string
1378+
type:
1379+
type: enum
1380+
name: ToolTimeLimit_class
1381+
symbols:
1382+
- cwl:ToolTimeLimit
13441383
doc: "Always 'ToolTimeLimit'"
13451384
jsonldPredicate:
13461385
"_id": "@type"

Process.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,11 @@ $graph:
887887
interpolatation.
888888
fields:
889889
- name: class
890-
type: string
890+
type:
891+
type: enum
892+
name: InlineJavascriptRequirement_class
893+
symbols:
894+
- cwl:InlineJavascriptRequirement
891895
doc: "Always 'InlineJavascriptRequirement'"
892896
jsonldPredicate:
893897
"_id": "@type"
@@ -923,7 +927,11 @@ $graph:
923927
924928
fields:
925929
- name: class
926-
type: string
930+
type:
931+
type: enum
932+
name: SchemaDefRequirement_class
933+
symbols:
934+
- cwl:SchemaDefRequirement
927935
doc: "Always 'SchemaDefRequirement'"
928936
jsonldPredicate:
929937
"_id": "@type"
@@ -1021,7 +1029,11 @@ $graph:
10211029
a Directory object for use by expressions.
10221030
fields:
10231031
class:
1024-
type: string
1032+
type:
1033+
type: enum
1034+
name: LoadListingRequirement_class
1035+
symbols:
1036+
- cwl:LoadListingRequirement
10251037
doc: "Always 'LoadListingRequirement'"
10261038
jsonldPredicate:
10271039
"_id": "@type"

Workflow.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,11 @@ $graph:
729729
the `run` field of [WorkflowStep](#WorkflowStep).
730730
fields:
731731
- name: "class"
732-
type: "string"
732+
type:
733+
type: enum
734+
name: SubworkflowFeatureRequirement_class
735+
symbols:
736+
- cwl:SubworkflowFeatureRequirement
733737
doc: "Always 'SubworkflowFeatureRequirement'"
734738
jsonldPredicate:
735739
"_id": "@type"
@@ -743,7 +747,11 @@ $graph:
743747
`scatterMethod` fields of [WorkflowStep](#WorkflowStep).
744748
fields:
745749
- name: "class"
746-
type: "string"
750+
type:
751+
type: enum
752+
name: ScatterFeatureRequirement_class
753+
symbols:
754+
- cwl:ScatterFeatureRequirement
747755
doc: "Always 'ScatterFeatureRequirement'"
748756
jsonldPredicate:
749757
"_id": "@type"
@@ -757,7 +765,11 @@ $graph:
757765
listed in the `source` field of [WorkflowStepInput](#WorkflowStepInput).
758766
fields:
759767
- name: "class"
760-
type: "string"
768+
type:
769+
type: enum
770+
name: MultipleInputFeatureRequirement_class
771+
symbols:
772+
- cwl:MultipleInputFeatureRequirement
761773
doc: "Always 'MultipleInputFeatureRequirement'"
762774
jsonldPredicate:
763775
"_id": "@type"
@@ -771,7 +783,11 @@ $graph:
771783
of [WorkflowStepInput](#WorkflowStepInput).
772784
fields:
773785
- name: "class"
774-
type: "string"
786+
type:
787+
type: enum
788+
name: StepInputExpressionRequirement_class
789+
symbols:
790+
- cwl:StepInputExpressionRequirement
775791
doc: "Always 'StepInputExpressionRequirement'"
776792
jsonldPredicate:
777793
"_id": "@type"

0 commit comments

Comments
 (0)