Skip to content

Commit 5d98fe7

Browse files
committed
allow unprefixed draft-3
1 parent b6c8c8d commit 5d98fe7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cwlupgrader/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ def main(): # type: () -> int
1212
with open(path) as entry:
1313
document = ruamel.yaml.load(entry)
1414
if ('cwlVersion' in document
15-
and document['cwlVersion'] == 'cwl:draft-3'):
15+
and (document['cwlVersion'] == 'cwl:draft-3'
16+
or document['cwlVersion'] == 'draft-3')):
1617
draft3_to_v1_0(document)
1718
else:
1819
print("Skipping non draft-3 CWL document", file=sys.stderr)

0 commit comments

Comments
 (0)