From 648a3b4770f0677dcccbd2d908cbdec28b5bdab3 Mon Sep 17 00:00:00 2001 From: Nico Trummer Date: Wed, 16 Oct 2024 14:35:50 +0200 Subject: [PATCH] Fix problematic json schemas --- assets/schema_counts_design.json | 21 +++++++++++++++------ assets/schema_input_bam.json | 24 ++++++++++++++++++------ 2 files changed, 33 insertions(+), 12 deletions(-) diff --git a/assets/schema_counts_design.json b/assets/schema_counts_design.json index 6d656f3..917a9f5 100644 --- a/assets/schema_counts_design.json +++ b/assets/schema_counts_design.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft-07/schema", + "$schema": "http://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/nf-core/tfactivity/master/assets/schema_counts_design.json", "title": "nf-core/tfactivity pipeline - params.counts_design schema", "description": "Schema for the file provided with params.counts_design", @@ -11,19 +11,25 @@ "type": "string", "pattern": "^\\S+$", "errorMessage": "Sample name must be provided and cannot contain spaces", - "meta": ["id"] + "meta": [ + "id" + ] }, "condition": { "type": "string", "pattern": "^\\S+$", "errorMessage": "Condition name must be provided and cannot contain spaces", - "meta": ["condition"] + "meta": [ + "condition" + ] }, "batch": { "type": "string", "pattern": "^\\S+$", "errorMessage": "Batch identifier cannot contain spaces", - "meta": ["batch"] + "meta": [ + "batch" + ] }, "counts_file": { "type": "string", @@ -33,6 +39,9 @@ "errorMessage": "Counts file must be a .csv or .txt file" } }, - "required": ["sample", "condition"] + "required": [ + "sample", + "condition" + ] } -} +} \ No newline at end of file diff --git a/assets/schema_input_bam.json b/assets/schema_input_bam.json index 5661c81..101cd3c 100644 --- a/assets/schema_input_bam.json +++ b/assets/schema_input_bam.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft-07/schema", + "$schema": "http://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/nf-core/tfactivity/master/assets/schema_input.json", "title": "nf-core/tfactivity pipeline - params.input schema", "description": "Schema for the file provided with params.input_bam", @@ -11,19 +11,25 @@ "type": "string", "pattern": "^\\S+$", "errorMessage": "Sample name must be provided and cannot contain spaces", - "meta": ["id"] + "meta": [ + "id" + ] }, "condition": { "type": "string", "pattern": "^\\S+$", "errorMessage": "Condition name must be provided and cannot contain spaces", - "meta": ["condition"] + "meta": [ + "condition" + ] }, "assay": { "type": "string", "pattern": "^\\S+$", "errorMessage": "Assay name must be provided and cannot contain spaces", - "meta": ["assay"] + "meta": [ + "assay" + ] }, "signal": { "type": "string", @@ -40,6 +46,12 @@ "errorMessage": "Control file must be provided and must be a .bam file" } }, - "required": ["sample", "condition", "assay", "signal", "control"] + "required": [ + "sample", + "condition", + "assay", + "signal", + "control" + ] } -} +} \ No newline at end of file