Clarification: is File
to String
type coercion supported?
#685
Labels
K-clarification
(Kind) Clarifications regarding the WDL specification.
S02-needs-owner
(State) An issue that needs an individual to write an RFC.
T-types
(Topic) Issues related to the WDL type system.
Currently the type coercion table does not list a supported type coercion from
File
toString
, onlyString
toFile
.There are also conflicting examples in the spec regarding a
File
toString
type coercion:coercion_fail.wdl
which explicitly saysFile
does not coerce toString
in a call to thecontains
function and thus is an error.change_extension_task.wdl
which explicitly shows a call tosub
with aFile
argument, despite the type ofsub
being[String, String, String] -> String
.In an attempt to be faithful to the spec,
sprocket
is implementing full static analysis (and soon evaluation) of WDL and does not allow a coercion fromFile
toString
as it isn't in the coercion table; this is producing errors in existing WDL source that is accepted by Cromwell.Is a coercion from
File
(and alsoDirectory
) toString
intended to be accepted in the current WDL spec? If so, we should include it in the coercion table and correct thecoercion_fail.wdl
example.If not, we should fix the
change_extension_task.wdl
example.The text was updated successfully, but these errors were encountered: