From aefadc303cd4f2e3abe4408ac7012e28ac4df39c Mon Sep 17 00:00:00 2001 From: Cunliang Geng Date: Tue, 31 Oct 2023 15:19:21 +0100 Subject: [PATCH] add genome ID length requirement in PDOP schema This will make sure that input genome IDs cannot be empty string. --- src/nplinker/schemas/podp_adapted_schema.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/nplinker/schemas/podp_adapted_schema.json b/src/nplinker/schemas/podp_adapted_schema.json index ec182ae4..d93a20e9 100644 --- a/src/nplinker/schemas/podp_adapted_schema.json +++ b/src/nplinker/schemas/podp_adapted_schema.json @@ -93,17 +93,20 @@ "GenBank_accession": { "type": "string", "title": "GenBank accession number", - "description": "If the publicly available genome got a GenBank accession number assigned, e.g., AL645882, please provide it here. The genome sequence must be submitted to GenBank/ENA/DDBJ (and an accession number must be received) before this form can be filled out. In case of a whole genome sequence, please use master records. At least one identifier must be entered." + "description": "If the publicly available genome got a GenBank accession number assigned, e.g., AL645882, please provide it here. The genome sequence must be submitted to GenBank/ENA/DDBJ (and an accession number must be received) before this form can be filled out. In case of a whole genome sequence, please use master records. At least one identifier must be entered.", + "minLength": 1 }, "RefSeq_accession": { "type": "string", "title": "RefSeq accession number", - "description": "For example: NC_003888.3" + "description": "For example: NC_003888.3", + "minLength": 1 }, "JGI_Genome_ID": { "type": "string", "title": "JGI IMG genome ID", - "description": "For example: 641228474" + "description": "For example: 641228474", + "minLength": 1 } } },