Skip to content

Commit 619314b

Browse files
author
Peter Amstutz
committed
Clarify that all input parameters must be null if not assigned. Clarify that
`default` applies when the paramater value is `null`.
1 parent 19e53aa commit 619314b

File tree

4 files changed

+24
-8
lines changed

4 files changed

+24
-8
lines changed

v1.0/Process.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,9 @@ $graph:
567567
_id: cwl:default
568568
noLinkCheck: true
569569
doc: |
570-
The default value for this parameter if not provided in the input
571-
object.
570+
The default value to use for this parameter if the parameter is missing
571+
from the input object, or if the value of the parameter in the input
572+
object is `null`.
572573
573574
- name: type
574575
type:
@@ -648,6 +649,13 @@ $graph:
648649
values. Input parameters include a schema for each parameter which is
649650
used to validate the input object. It may also be used to build a user
650651
interface for constructing the input object.
652+
653+
When accepting an input object, all input parameters must have a value.
654+
If an input parameter is missing from the input object, it must be
655+
assigned a value of `null` (or the value of `default` for that
656+
parameter, if provided) for the purposes of validation and evaluation
657+
of expressions.
658+
651659
- name: outputs
652660
type:
653661
type: array

v1.0/Workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ $graph:
260260
- name: default
261261
type: ["null", Any]
262262
doc: |
263-
The default value for this parameter if there is no `source`
264-
field.
263+
The default value for this parameter to use if either there is no
264+
`source` field, or the value produced by the `source` is `null`.
265265
jsonldPredicate:
266266
_id: "cwl:default"
267267
noLinkCheck: true

v1.1.0-dev1/Process.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,9 @@ $graph:
568568
_id: cwl:default
569569
noLinkCheck: true
570570
doc: |
571-
The default value for this parameter if not provided in the input
572-
object.
571+
The default value to use for this parameter if the parameter is missing
572+
from the input object, or if the value of the parameter in the input
573+
object is `null`.
573574
574575
- name: RegularInputParameter
575576
type: record
@@ -653,6 +654,13 @@ $graph:
653654
values. Input parameters include a schema for each parameter which is
654655
used to validate the input object. It may also be used to build a user
655656
interface for constructing the input object.
657+
658+
When accepting an input object, all input parameters must have a value.
659+
If an input parameter is missing from the input object, it must be
660+
assigned a value of `null` (or the value of `default` for that
661+
parameter, if provided) for the purposes of validation and evaluation
662+
of expressions.
663+
656664
- name: outputs
657665
type:
658666
type: array

v1.1.0-dev1/Workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ $graph:
266266
- name: default
267267
type: ["null", Any]
268268
doc: |
269-
The default value for this parameter if there is no `source`
270-
field.
269+
The default value for this parameter to use if either there is no
270+
`source` field, or the value produced by the `source` is `null`.
271271
jsonldPredicate:
272272
_id: "cwl:default"
273273
noLinkCheck: true

0 commit comments

Comments
 (0)