File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2121from cwl_utils .loghandler import _logger
2222
2323# Type hinting
24- from cwl_utils .parser import InputRecordSchemaTypes
24+ from cwl_utils .parser import InputRecordSchemaTypes , InputArraySchemaTypes
2525
2626# Load as 1.2 files
27- from cwl_utils .parser .cwl_v1_2 import InputArraySchema as InputArraySchemaV1_2
2827from cwl_utils .parser .cwl_v1_2 import InputEnumSchema as InputEnumSchemaV1_2
2928
3029fast_yaml = YAML (typ = "safe" )
@@ -341,7 +340,10 @@ def sanitise_schema_field(
341340 schema_field_item = deepcopy (schema_field_item )
342341 required = True
343342
344- if isinstance (schema_field_item , InputRecordSchemaTypes ):
343+ if (
344+ isinstance (schema_field_item , InputRecordSchemaTypes ) or
345+ isinstance (schema_field_item , InputArraySchemaTypes )
346+ ):
345347 return schema_field_item
346348
347349 if isinstance (schema_field_item .get ("type" ), list ):
You can’t perform that action at this time.
0 commit comments