-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
More defaults #68
More defaults #68
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These go into effect for 1.2? Trying to think of consequences for existing 1.0, 1.1 implementations.
These were always the defaults in the text, but not in the schema as schema-salad didn't get a default field until more recently. |
@kaushik-work see common-workflow-language/schema_salad#124 (comment) |
To implement the slightly complicated default value rules for ResourceRequirement
@kaushik-work on a second look, you were right, there is an issue to set these defaults there Looking at the text for https://www.commonwl.org/v1.2/CommandLineTool.html#ResourceRequirement
Later in the table we are told there are default values for
If I add those defaults values to the schema as I do in this PR, then strictly speaking all the
Same here. The "min"s will always be specified, so this rule simplifies down to
So these defaults have to be applied at a different layer than the schema to enable this fallback processing. Therefore I have updated this PR to add notes to prevent someone else from making the same mistake. I also added two legitimately missing defaults: |
* some defaults should not be set using 'default' To implement the slightly complicated default value rules for ResourceRequirement * InputBinding.position default is 0. * File.streamable default is false.
* some defaults should not be set using 'default' To implement the slightly complicated default value rules for ResourceRequirement * InputBinding.position default is 0. * File.streamable default is false.
* some defaults should not be set using 'default' To implement the slightly complicated default value rules for ResourceRequirement * InputBinding.position default is 0. * File.streamable default is false.
No description provided.