Luuk Harbers
04/29/2026, 3:27 PMnextflow_schema.json support arrays as input?
I'm trying to get something along the lines of the following to work but keep getting linting errors:
"somatic_var_keep": {
"type": "array",
"description": "List of somatic variant callers to use. Must include at least one of [deepsomatic, clair].",
"items": {
"type": "string",
"enum": ["deepsomatic", "clair"]
},
"minItems": 1,
"default": "['deepsomatic', 'clair']"
}Luuk Harbers
04/29/2026, 3:27 PMAlec Wysoker
04/29/2026, 3:29 PM"fastq_read1": {
"type": ["string", "array"],
"items": {
"type": "string",
"format": "file-path",
"exists": true
},
"default": "[]",
"format": "file-path"
},Igor Trujnara
04/29/2026, 3:31 PMstring and use .split() to convert it into a list inside the workflow, and then validate it as required. It would be interesting to see a pure nf-schema solution though.Luuk Harbers
04/29/2026, 3:32 PMLuuk Harbers
04/29/2026, 3:33 PMErin Young (UPHL)
04/29/2026, 3:36 PM"genome_accessions": {
"type": "array",
"items": { "type": "string" },
"hidden": true,
"description": "Genome accessions"
},Arthur
04/29/2026, 4:46 PM-params-file because there is no support for array params on the cliArthur
04/29/2026, 4:48 PM