Skip to content

Commit

Permalink
patch cwltool failing with namespaced format as expression (relates to
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Aug 23, 2024
1 parent a9ba7e2 commit ee63f2c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ inputs:
- "File"
- type: array
items: File
# warning:
# When using an expression for 'format', the full URI must be specified.
# Using 'iana:application/geo+json' results in an error by cwltool
# (see https://github.com/common-workflow-language/cwltool/issues/2033).
format: |
${
if (Array.isArray(inputs.features)) {
return "iana:application/geo+json";
return "https://www.iana.org/assignments/media-types/application/geo+json";
}
return "http://www.opengis.net/def/glossary/term/FeatureCollection";
}
Expand Down

0 comments on commit ee63f2c

Please sign in to comment.