Skip to content

Commit 34d946e

Browse files
author
Peter Amstutz
committed
Make location optional to support File contents literals.
1 parent f69576a commit 34d946e

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

draft-4/Process.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ $graph:
6565
_type: "@vocab"
6666
doc: Must be `File` to indicate this object describes a file.
6767
- name: location
68-
type: [string, Expression]
68+
type: ["null", string, Expression]
6969
doc: |
7070
A URI that identifies the file resource. This may be a relative
7171
reference, in which case it must be resolved using the base URI of the
@@ -256,6 +256,23 @@ $graph:
256256
jsonldPredicate:
257257
_id: "cwl:path"
258258
_type: "@id"
259+
- name: basename
260+
type: [string, Expression]
261+
doc: |
262+
The base name of the directory, that is, the name of the file without any
263+
leading directory path. The base name must not contain a slash `/`.
264+
265+
If not provided, the implementation must set this field based on the
266+
`location` field by taking the final path component after parsing
267+
`location` as an IRI. If `basename` is provided, it is not required to
268+
match the value from `location`.
269+
270+
When this file is made available to a CommandLineTool, it must be named
271+
with `basename`, i.e. the final component of the `path` field must match
272+
`basename`.
273+
274+
Must be evaluated as an expression only when appearing in InitialWorkDirRequirement.
275+
259276
- name: listing
260277
type:
261278
- "null"

0 commit comments

Comments
 (0)