We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db6c439 commit ce888a1Copy full SHA for ce888a1
cwltool/load_tool.py
@@ -165,8 +165,8 @@ def validate_document(document_loader, # type: Loader
165
r"^(?:cwl:|https://w3id.org/cwl/cwl#)", "",
166
workflowobj["cwlVersion"])
167
else:
168
- _logger.warning("No cwlVersion found, treating this file as draft-2.")
169
- workflowobj["cwlVersion"] = "draft-2"
+ raise ValidationException("No cwlVersion found."
+ "Use the following syntax in your CWL workflow to declare version: cwlVersion: <version>")
170
171
if workflowobj["cwlVersion"] == "draft-2":
172
workflowobj = cast(CommentedMap, cmap(update._draft2toDraft3dev1(
0 commit comments