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

No way to access custom metadata #36

Open
jdidion opened this issue Dec 14, 2020 · 2 comments
Open

No way to access custom metadata #36

jdidion opened this issue Dec 14, 2020 · 2 comments

Comments

@jdidion
Copy link
Contributor

jdidion commented Dec 14, 2020

CWL provides the ability to use custom metadata via $namespaces. However, the objects generated by the Java parser do not contain the metadata, or at least there's no method by which to access it.

@jdidion
Copy link
Contributor Author

jdidion commented Aug 31, 2021

The same is true for $schemas

@mr-c
Copy link
Member

mr-c commented Jan 6, 2022

$namespaces are stored in the private loadingOptions_ class member in each cwljava object; can you access that from Scala or do we need to add a public accessor function?

https://github.com/common-workflow-lab/cwljava/blob/13ee0b762465307f4103abad15e1a3b31da73656/src/main/java/org/w3id/cwl/cwl1_2/utils/Loader.java#L29

https://github.com/common-workflow-lab/cwljava/blob/13ee0b762465307f4103abad15e1a3b31da73656/src/main/java/org/w3id/cwl/cwl1_2/WorkflowImpl.java#L79

While there is a schemas class member for LoadingOptions it doesn't appear to be used. This would be fixable, if you'd like.

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

No branches or pull requests

2 participants