Skip to content

Commit

Permalink
fix CWL enum type invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Nov 23, 2024
1 parent 39b9570 commit c12bc63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/processes/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -2301,7 +2301,7 @@ def test_ogcapi2cwl_process_cwl_enum_updated(input_str, input_int, input_float,
assert "values.includes(self)" in cwl_value_from
assert "self.every(item => values.includes(item))" not in cwl_value_from

assert cwl["inputs"]["enum-time"]["type"] == {"type": "enum", "symbols": ["#12:00", "#24:00"]}
assert cwl["inputs"]["enum-time"] == {"type": "enum", "symbols": ["#12:00", "#24:00"]}
assert "inputBinding" not in cwl["inputs"]["enum-time"]


Expand Down
2 changes: 1 addition & 1 deletion weaver/processes/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ def _convert_cwl_io_enum(cwl_io_type, cwl_io_symbols, io_select, allow_unique, a

if any_colon_symbol:
cwl_io_symbols = [f"#{symbol}" for symbol in cwl_io_symbols]
return {"type": cwl_io_type, "symbols": cwl_io_symbols}
return {"type": PACKAGE_ENUM_BASE, "symbols": cwl_io_symbols}

if io_select != IO_INPUT:
return {"type": cwl_io_type}
Expand Down

0 comments on commit c12bc63

Please sign in to comment.