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 21
21
from cwl_utils .loghandler import _logger
22
22
23
23
# Type hinting
24
- from cwl_utils .parser import InputRecordSchemaTypes
24
+ from cwl_utils .parser import InputRecordSchemaTypes , InputArraySchemaTypes
25
25
26
26
# Load as 1.2 files
27
- from cwl_utils .parser .cwl_v1_2 import InputArraySchema as InputArraySchemaV1_2
28
27
from cwl_utils .parser .cwl_v1_2 import InputEnumSchema as InputEnumSchemaV1_2
29
28
30
29
fast_yaml = YAML (typ = "safe" )
@@ -341,7 +340,10 @@ def sanitise_schema_field(
341
340
schema_field_item = deepcopy (schema_field_item )
342
341
required = True
343
342
344
- if isinstance (schema_field_item , InputRecordSchemaTypes ):
343
+ if (
344
+ isinstance (schema_field_item , InputRecordSchemaTypes ) or
345
+ isinstance (schema_field_item , InputArraySchemaTypes )
346
+ ):
345
347
return schema_field_item
346
348
347
349
if isinstance (schema_field_item .get ("type" ), list ):
You can’t perform that action at this time.
0 commit comments