-
-
Notifications
You must be signed in to change notification settings - Fork 195
remove errant jsonldPredicate #342
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
Conversation
@tetron I believe this explains common-workflow-language/cwltool@0433da3#diff-beaffd47be66a8d26cd63bd075ab9310R39 :-) |
The intent when I wrote the |
Background: "@id" alias fields indicates node anchors in the graph, and they trigger special handling. For example, they go into the Loader index. Nodes which have an "@id" field can be $imported in several places and will be references to the same node. In order for file roots lacking an explicit "id" to go into the index, the loader adds an synthetic "id" field containing the URI at which the file was loaded. However, there are actually multiple "@id" aliases: "id", "name" and "package". Unfortunately, at the point that the "id" field is being added, the Loader doesn't know what type it is validating for, so it adds all of those fields. This is where the phantom "package" field comes from. Downstream validation is then explicitly instructed to ignore the alternate "@id" fields. Thoughts:
http://bio.tools/tool/bwa/package.cwl
|
Recommendations:
Resolver behavior should start with |
Thank you @tetron for your detailed backgrounder. I agree, the I'll add the |
This was fix was confirmed to remove the phantom "package" errors, see common-workflow-language/cwltool#229