common-workflow-language / common-workflow-language/cwl-v1.2
CWL Enum using numerics ?
- Dominant language
- Common Workflow Language
- Stars
- 45
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
The https://www.commonwl.org/v1.2/CommandLineTool.html#CommandInputEnumSchema only allows `string` symbols.
However, it is very common to have `integer` and `double`/`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
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with CommandInputEnumSchema in json-schema/cwl.yaml at lines 1354-1364 and compare it with the v1.2 CommandInputEnumSchema specification. Determine whether integer and double/float symbols should be supported and how the schema and specification should agree. Done means the supported enum types and their schema behavior are unambiguous.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- json, yaml
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100