New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cwltool fails with type:record and no fields defined #608
Comments
I could have a look at fixing this issue with a pull request, however the CWL 1.0 specification doesn't specify what should happen when no |
@ThomasHickman thank you for your issue! Can you help us by giving a concrete real world example? |
I'm trying to write a cwl file for an tool called capmq (https://github.com/mcshane/capmq). In capmq, there are options where you can pass arguments to htslib (-I and -O from https://github.com/mcshane/capmq/blob/master/capmq.c#L288). One way to express the type of this parameter would be to use a map e.g. to describe the inputs from example given in the help text of capmq, you would write the following as an input:
where file_format is a special property that is put first in the output array. From the cwl documentation, it looks like the way to implement an map would be to use |
I thought I could use the fact that |
This issue has been mentioned on Common Workflow Language Discourse. There might be relevant details there: https://cwl.discourse.group/t/creating-config-json-file-from-a-record/172/1 |
Expected Behavior
The cwl specification states that record types has an optional record field (http://www.commonwl.org/v1.0/CommandLineTool.html#CommandInputRecordSchema), so this file shouldn't yield an error when run:
with an input file of:
Actual Behavior
When running
cwltool test.cwl test.yaml
orcwltool test.cwl
, the task fails with the error below:Without --debug:
With --debug:
Your Environment
The text was updated successfully, but these errors were encountered: