@@ -42,8 +42,8 @@ def fetch_document(argsworkflow):
42
42
43
43
44
44
def validate_document (document_loader , workflowobj , uri ,
45
- enable_dev = False , strict = True , preprocess_only = False ):
46
- # type: (Loader, Dict[unicode, Any], unicode, bool, bool, bool) -> Tuple[Loader, Names, Any, Dict[str, str], unicode]
45
+ enable_dev = False , strict = True , preprocess_only = False , update = True ):
46
+ # type: (Loader, Dict[unicode, Any], unicode, bool, bool, bool, bool ) -> Tuple[Loader, Names, Any, Dict[str, str], unicode]
47
47
"""Validate a CWL document."""
48
48
jobobj = None
49
49
if "cwl:tool" in workflowobj :
@@ -93,7 +93,7 @@ def validate_document(document_loader, workflowobj, uri,
93
93
"$schemas" : processobj .get ("$schemas" , []),
94
94
"cwlVersion" : processobj ["cwlVersion" ]}
95
95
96
- if metadata .get ("cwlVersion" ) != update .LATEST :
96
+ if update and metadata .get ("cwlVersion" ) != update .LATEST :
97
97
processobj = update .update (
98
98
processobj , document_loader , fileuri , enable_dev , metadata )
99
99
0 commit comments