Skip to content

Commit 6bcf406

Browse files
author
Peter Amstutz
committed
Add LoadListingRequirement and parameter-level loadListing option.
1 parent e53d8aa commit 6bcf406

File tree

1 file changed

+37
-3
lines changed

1 file changed

+37
-3
lines changed

Process.yml

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,21 +436,38 @@ $graph:
436436
doc: "The unique identifier for this object."
437437

438438

439+
- name: LoadListingEnum
440+
type: enum
441+
symbols: [no_listing, shallow_listing, deep_listing]
442+
doc:
443+
- |
444+
Specify the desired behavior for loading the `listing` field of
445+
a Directory object for use by expressions.
446+
- "no_listing: Do not load the directory listing."
447+
- "shallow_listing: Only load the top level listing, do not recurse into subdirectories."
448+
- "deep_listing: Load the directory listing and recursively load all subdirectories as well."
449+
450+
439451
- name: LoadContents
440452
type: record
441453
abstract: true
442454
fields:
443455
- name: loadContents
444-
type:
445-
- "null"
446-
- boolean
456+
type: boolean?
447457
jsonldPredicate: "cwl:loadContents"
448458
doc: |
449459
Only valid when `type: File` or is an array of `items: File`.
450460
451461
Read up to the first 64 KiB of text from the file and place it in the
452462
"contents" field of the file object for use by expressions.
463+
- name: loadListing
464+
type: LoadListingEnum?
465+
jsonldPredicate: "cwl:loadListing"
466+
doc: |
467+
Only valid when `type: Directory` or is an array of `items: Directory`.
453468
469+
Specify the desired behavior for loading the `listing` field of
470+
a Directory object for use by expressions.
454471
455472
- name: FieldBase
456473
type: record
@@ -914,3 +931,20 @@ $graph:
914931
set to `false` and the expected secondary file does not exist.
915932
Default value for `required` field is `true` for secondary files on
916933
input and `false` for secondary files on output.
934+
935+
- name: LoadListingRequirement
936+
type: record
937+
extends: ProcessRequirement
938+
doc: |
939+
Specify the desired behavior for loading the `listing` field of
940+
a Directory object for use by expressions.
941+
fields:
942+
class:
943+
type: string
944+
doc: "Always 'LoadListingRequirement'"
945+
jsonldPredicate:
946+
"_id": "@type"
947+
"_type": "@vocab"
948+
loadListing:
949+
type: LoadListingEnum?
950+
jsonldPredicate: "cwl:loadListing"

0 commit comments

Comments
 (0)