From e6550d791a5bba868025745527c24c441d9bb4e0 Mon Sep 17 00:00:00 2001 From: Anna Krystalli Date: Wed, 24 Jul 2024 17:09:01 +0300 Subject: [PATCH] Remove restrictive epidemic week formatting requirements for CDF output_type_id values. Resolves #80 --- NEWS.md | 1 + v3.0.1/tasks-schema.json | 10 ++-------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/NEWS.md b/NEWS.md index 8ee2f2f..449f2a2 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,7 @@ # v3.0.1 * Introduction of optional `output_type_id_datatype` property to enable hub administrators to configure and communicate the `output_type_id` column data type at a hub level. This will allow hubs to override default behaviour of automatically determinining the simplest data type that can accomodate output type IDs across all output types when creating hub schema. The setting is also useful for administrators to future proof the `output_type_id` column from potential issues arising by changes in data type, introduced by new output types after submissions have begun, by setting `output_type_id_datatype` to the simplest data type from the start, i.e. character (#87). +* Removed restrictive epidemic week formatting requirements for CDF `output_type_id` values. Character output type IDs no longer need to conform to the regex pattern `^EW[0-9]{6}` (e.g. `"EW202240"`) (#80). diff --git a/v3.0.1/tasks-schema.json b/v3.0.1/tasks-schema.json index 2f21261..f0ca1c2 100644 --- a/v3.0.1/tasks-schema.json +++ b/v3.0.1/tasks-schema.json @@ -946,10 +946,7 @@ "minimum": 0 }, { - "type": "string", - "pattern": "^EW[0-9]{6}", - "minLength": 8, - "maxLength": 8 + "type": "string" } ] } @@ -970,10 +967,7 @@ "minimum": 0 }, { - "type": "string", - "pattern": "^EW[0-9]{6}", - "minLength": 8, - "maxLength": 8 + "type": "string" } ] }