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

cwltool --pack adds an 'id' to InputRecordSchemas that is invalid #1505

Closed
mr-c opened this issue Sep 4, 2021 · 1 comment · Fixed by common-workflow-language/schema_salad#430

Comments

@mr-c
Copy link
Member

mr-c commented Sep 4, 2021

The raw yaml is now publicly accessible at https://github.com/umccr/cwl-ica/blob/main/workflows/bcl-conversion/3.7.5/bcl-conversion__3.7.5.cwl

None of the schemas present have the id attribute in them either:

Originally posted by @alexiswl in common-workflow-language/cwl-utils#71 (comment)

@mr-c
Copy link
Member Author

mr-c commented Sep 4, 2021

Good news, --pack is not the culprit. The extra id fields were added before

loadingContext, docobj, uri = fetch_document(uri, loadingContext)
(the main loop)

In fact, it is schema_salad that injects the extra id fields: https://github.com/common-workflow-language/schema_salad/blob/b2abeb5ff6a31686b4844019671a1049933f339c/schema_salad/ref_resolver.py#L999
(dating back to 2015: common-workflow-language/schema_salad@a10d387 )

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

Successfully merging a pull request may close this issue.

1 participant