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
IN: from cwl_utils.parser_v1_0 import load_document
IN: [i.type for i in load_document('test.cwl').inputs]
Out:
['int',
<cwl_utils.parser_v1_0.InputArraySchema at 0x7f9242121400>,
['null', 'int']]
Shouldn't the InputArraySchema object also be a string, for example array?
The text was updated successfully, but these errors were encountered:
The generated parsers embody all the flexibility of the schema-salad definition of CWL.
It is feasible to add an field to the schema format and use that to indicate the canonical representation of a field. Then one would enhance schema-salad-tool --codegen python to either normalize to that formulation on read in or on field access (either option would enable proper PEP 484 Python type hints as well).
python:
Shouldn't the
InputArraySchema
object also be a string, for example array?The text was updated successfully, but these errors were encountered: