Skip to content
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

SchemaDefRequirement section: Imports of type definitions are not supported #32

Open
mscheremetjew opened this issue Sep 28, 2018 · 4 comments
Labels
enhancement New feature or request

Comments

@mscheremetjew
Copy link

cwlexec reports the following and exits:

The field [SchemaType] is required by [type].

if a type definition is imported like that:

cwlVersion: v1.0
class: CommandLineTool

requirements:
 - class: SchemaDefRequirement
   types:
    - $import: test_values.yaml

here is a simple test case for reproduction:
test.cwl.txt
test.yaml.txt
test_values.yaml.txt

call:

$ cwlexec test.cwl test.yaml
@skeeey
Copy link
Collaborator

skeeey commented Sep 30, 2018

@mscheremetjew
Currently, cwlexec does not support using $import to import an input/output type from SchemaDefRequirement :-(, you need to define a type in input/output filed directly, and we will consider to support this feature in next plan, thanks

@skeeey skeeey added the enhancement New feature or request label Sep 30, 2018
@mscheremetjew
Copy link
Author

@skeeey Thanks for the update on that. I will work around this meanwhile.

@mr-c
Copy link

mr-c commented Jun 28, 2019

A simple workaround is to preprocess using cwltool --pack

You could also try packing your CWL into a single file with cwltool --pack test.cwll > test-packed.cwl.

This does $import and $include processing, so that may be easier for cwlexec to ingest until they become more compliant with the entirety of CWL v1.0.

@mscheremetjew
Copy link
Author

@mr-c nice! thanks for adding this. other developers will benefit from it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants