Skip to content

Commit 547518b

Browse files
committed
refactor schema_input.json for improved readability and clarity in error messages
1 parent 2586b39 commit 547518b

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

assets/schema_input.json

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,22 @@
1111
"type": "string",
1212
"pattern": "^\\S+$",
1313
"errorMessage": "Sample name must be provided and cannot contain spaces",
14-
"meta": ["id"]
14+
"meta": [
15+
"id"
16+
]
1517
},
1618
"fastq_1": {
1719
"type": "string",
1820
"format": "file-path",
1921
"exists": true,
2022
"pattern": "^\\S+\\.f(ast)?q\\.gz$",
21-
"errorMessage": "FastQ file for reads 1 must be provided, cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'"
23+
"errorMessage": "GZIP-compressed FastQ file for reads 1 must be provided, cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'"
2224
},
2325
"fastq_2": {
24-
"errorMessage": "FastQ file for reads 2 cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'",
2526
"type": "string",
2627
"format": "file-path",
2728
"exists": true,
29+
"errorMessage": "GZIP-compressed FastQ file for reads 2 cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'",
2830
"anyOf": [
2931
{
3032
"pattern": "^\\S+\\.f(ast)?q\\.gz$"
@@ -37,10 +39,21 @@
3739
"strandedness": {
3840
"type": "string",
3941
"errorMessage": "Strandedness must be provided and be one of 'auto', 'forward', 'reverse' or 'unstranded'",
40-
"enum": ["forward", "reverse", "unstranded", "auto"],
41-
"meta": ["strandedness"]
42+
"enum": [
43+
"forward",
44+
"reverse",
45+
"unstranded",
46+
"auto"
47+
],
48+
"meta": [
49+
"strandedness"
50+
]
4251
}
4352
},
44-
"required": ["sample", "fastq_1", "strandedness"]
53+
"required": [
54+
"sample",
55+
"fastq_1",
56+
"strandedness"
57+
]
4558
}
4659
}

0 commit comments

Comments
 (0)