Skip to content

Commit 0f28896

Browse files
authored
Merge pull request #408 from kapilkd13/master
changes to enable nolinkcheck in case of default field, related to cwltool issue#2
2 parents d71b2f7 + 18fc8d6 commit 0f28896

File tree

10 files changed

+49
-6
lines changed

10 files changed

+49
-6
lines changed

v1.0/Process.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,9 @@ $graph:
563563
564564
- name: default
565565
type: Any?
566-
jsonldPredicate: "cwl:default"
566+
jsonldPredicate:
567+
_id: cwl:default
568+
noLinkCheck: true
567569
doc: |
568570
The default value for this parameter if not provided in the input
569571
object.

v1.0/Workflow.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,9 @@ $graph:
261261
doc: |
262262
The default value for this parameter if there is no `source`
263263
field.
264-
jsonldPredicate: "cwl:default"
264+
jsonldPredicate:
265+
_id: "cwl:default"
266+
noLinkCheck: true
265267
- name: valueFrom
266268
type:
267269
- "null"

v1.0/conformance_test_v1.0.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -982,9 +982,13 @@
982982
tool: v1.0/imported-hint.cwl
983983
doc: Test hints with $import
984984

985+
- output: {}
986+
job: v1.0/default_path_job.yml
987+
tool: v1.0/default_path.cwl
988+
doc: Test warning instead of error when default path is not found
989+
985990
- output:
986991
args: [-A,'2',-B,baz,-C,'10','9','8','7','6','5','4','3','2','1']
987992
job: v1.0/empty.json
988993
tool: v1.0/inline-js.cwl
989-
doc: Test InlineJavascriptRequirement with multiple expressions in the same tool
990-
994+
doc: Test InlineJavascriptRequirement with multiple expressions in the same tool

v1.0/v1.0/default_path.cwl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
cwlVersion: v1.0
2+
class: CommandLineTool
3+
inputs:
4+
- id: "file1"
5+
type: File
6+
default:
7+
class: File
8+
path: default.txt
9+
outputs: []
10+
arguments: [cat,$(inputs.file1.path)]

v1.0/v1.0/default_path_job.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
file1:
2+
class: File
3+
path: hello.txt

v1.1.0-dev1/Process.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,9 @@ $graph:
564564
565565
- name: default
566566
type: Any?
567-
jsonldPredicate: "cwl:default"
567+
jsonldPredicate:
568+
_id: cwl:default
569+
noLinkCheck: true
568570
doc: |
569571
The default value for this parameter if not provided in the input
570572
object.

v1.1.0-dev1/Workflow.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,9 @@ $graph:
267267
doc: |
268268
The default value for this parameter if there is no `source`
269269
field.
270-
jsonldPredicate: "cwl:default"
270+
jsonldPredicate:
271+
_id: "cwl:default"
272+
noLinkCheck: true
271273
- name: valueFrom
272274
type:
273275
- "null"

v1.1.0-dev1/conformance_test_v1.1.0-dev1.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -992,3 +992,8 @@
992992
size: 15
993993
tool: v1.1.0-dev1/imported-hint.cwl
994994
doc: Test hints with $import
995+
996+
- output: {}
997+
job: v1.0/default_path_job.yml
998+
tool: v1.0/default_path.cwl
999+
doc: Test warning instead of error when default path is not found
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
cwlVersion: v1.0
2+
class: CommandLineTool
3+
inputs:
4+
- id: "file1"
5+
type: File
6+
default:
7+
class: File
8+
path: default.txt
9+
outputs: []
10+
arguments: [cat,$(inputs.file1.path)]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
file1:
2+
class: File
3+
path: hello.txt

0 commit comments

Comments
 (0)