common-workflow-language / cwl-utils

Python utilities for CWL

Home Page:https://cwl-utils.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InputArraySchema can't find some types

mr-c opened this issue · comments

Inspired by #71 (comment)

Parsing the result of cwltool --pack against https://github.com/common-workflow-language/cwl-v1.2/blob/5f27e234b4ca88ed1280dedf9e3391a01de12912/tests/import_schema-def.cwl#L14 works, but if the capture_kit type is changed to an array at https://github.com/common-workflow-language/cwl-v1.2/blob/5f27e234b4ca88ed1280dedf9e3391a01de12912/tests/import_schema-def.cwl#L14 then we get

                                                       Trying 'InputArraySchema'
packed2_import_schema-def.cwl:30:25:                     the `items` field is not valid because:
                                                           Term
                                                           '_:aec64949-a7fe-4207-a722-1bc42b7a1b6e#capture_kit.yml/capture_kit'
                                                           not in vocabulary

Maybe because the base ArraySchema has typeDSL: true not under items but under the static type field?

https://github.com/common-workflow-language/schema_salad/blob/main/schema_salad/metaschema/metaschema_base.yml#L172