common-workflow-language / common-workflow-language/cwltool

CLT input format field with expression generates spurius warning

Open
#1,498 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
376
Forks
255
Avg merge
2d 7h
Merged PRs (30d)
12

Description

```
URI prefix '${ return ["http' of '${ return ["http://edamontology.org/format_2330"];}
' not recognized, are you missing a $namespaces section?
```
``` cwl
#!/usr/bin/env cwl-runner
$namespaces:
edam: "http://edamontology.org/"
cwlVersion: v1.0
class: CommandLineTool
requirements:
InlineJavascriptRequirement: {}
doc: "Reverse each line using the `rev` command"
inputs:
input:
type: File
inputBinding: {}
format: |
${ return ["http://edamontology.org/format_2330"];}

outputs:
output:
type: File
outputBinding:
glob: output.txt
format: |
${return "http://edamontology.org/format_2330";}

baseCommand: rev
stdout: output.txt

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.