Open antonkulaga opened 5 years ago
Thanks for pointing this out, @antonkulaga - this looks to me like a bug in our draft-2 and 1.0 support.
I think this is probably something that could possibly be improved in a future WDL spec version. IMO ideally we wouldn't have to have a "mixed" return type function (since it plays badly with type-safety,) I think I'd prefer read_json_object
and read_json_array
, for example - but that would be up to the openWDL group, and this is definitely a bug in our interpretation for now!
Basically the same issue as https://github.com/broadinstitute/cromwell/issues/4625
I am struggling to make read_json work on any data that is more complex than a flat json-map.
For instance, a json like
cannot be read by
even through it is clearly Array[Map[String, String]] I get the following failure: