common-workflow-language / common-workflow-language/cwltool
Field is not valid: CommentedSeq expected null or string
- Dominant language
- Python
- Stars
- 376
- Forks
- 255
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 12
Description
## Expected Behavior
When providing a YAML with a list variable to an entry that requires an optional string should throw an error stating that a list was provided and that a null or string was expected.
## Actual Behavior
It complains about a CommentedSeq value while its actually a list.
```
QUALITY.yaml:7:1: the `kraken_database` field is not valid
because value is a CommentedSeq, expected null or string
```
## Workflow Code
```
kraken_database:
type: string?
label: Kraken2 database
doc: Kraken2 database location
default: "/unlock/references/databases/Kraken2/K2_PlusPF_20210517"
```
## Your Environment
* cwltool version: INFO /usr/local/bin/cwltool 3.1.20220520101121
Contributor guide
Assessment
This issue has not been assessed yet.