You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CWL v1.0 - v1.2 define the type enum as a specialization of the Salad type EnumSchema which means that each of the symbols are either full URIs or the ending parts of URIs built from the base URI for the document [0].
enums being a URI might make them attractive for use in specifying the output format of File types, but currently cwltool only outputs the short name[2]. So the utility of the URI is lost in this circumstance.
CWL v1.0 - v1.2 define the type
enum
as a specialization of the Salad typeEnumSchema
which means that each of thesymbols
are either full URIs or the ending parts of URIs built from the base URI for the document [0].The text of the standards does not directly say how to serialize
type: enum
s on the command line, but the conformance tests[1] show that a short name is computed and used. Short names are mentioned in the v1.0 version of the CWL standards but not defined explicitly until v1.1: https://www.commonwl.org/v1.1/SchemaSalad.html#Short_namesenum
s being a URI might make them attractive for use in specifying the outputformat
ofFile
types, but currentlycwltool
only outputs the short name[2]. So the utility of the URI is lost in this circumstance.CWL v1.2.1: Add an explicit explanation to https://www.commonwl.org/v1.2/CommandLineTool.html#CommandLineBinding on how to render
enum
s on the command line (compute the short name and use it)CWL v1.3+: Decide if/how the full URI of a
type: enum
is accessible in theformat
field and elsewhere[0] v1.0 Schema (the same for v1.1 and v1.2):
common-workflow-language/v1.0/Process.yml
Line 571 in c8041aa
common-workflow-language/v1.0/salad/schema_salad/metaschema/metaschema_base.yml
Line 129 in c8041aa
[1]
common-workflow-language/v1.0/conformance_test_v1.0.yaml
Line 2569 in c8041aa
https://github.com/common-workflow-language/common-workflow-language/blob/main/v1.0/v1.0/anon_enum_inside_array.cwl
https://github.com/common-workflow-language/common-workflow-language/blob/main/v1.0/v1.0/anon_enum_inside_array.yml
The correct result is
not
[2] https://cwl.discourse.group/t/set-tool-output-format-string-from-workflow-inputs/524/10?u=mrc
Related issue here: #568
Related discussions:
The text was updated successfully, but these errors were encountered: