-
-
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
CWL Enum using numerics ? #267
Comments
Since a CWL enum is basically a (possibly named) So for now, I would recommend making non-string based enumerations the appropriate atomic CWL numerical If you really need to check this at tool instantiation time (but prior to running the tool) you can generate a |
Would it be possible to use the |
Not in CWL v1.0-v1.2, no. |
The https://www.commonwl.org/v1.2/CommandLineTool.html#CommandInputEnumSchema only allows
string
symbols.However, it is very common to have
integer
anddouble
/float
as well.Should
CommandInputEnumSchema
allow these numeric types as well?Otherwise, how could I add this functionality?
I am trying to convert OpenAPI-style process definitions into CWL processes, and I cannot convert an input using an
enum[int]
type.Note that the current JSON schema actually allows (incorrectly?) numbers, given that I did not even realize numbers were not supported while writing it.
https://github.com/common-workflow-language/cwl-v1.2/blob/1.2.1_proposed/json-schema/cwl.yaml#L1354-L1364
The text was updated successfully, but these errors were encountered: