Skip to content

Commit

Permalink
Remove restrictive epidemic week formatting requirements for CDF outp…
Browse files Browse the repository at this point in the history
…ut_type_id values. Resolves #80
  • Loading branch information
annakrystalli committed Jul 24, 2024
1 parent d7cd67f commit e6550d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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).



Expand Down
10 changes: 2 additions & 8 deletions v3.0.1/tasks-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -946,10 +946,7 @@
"minimum": 0
},
{
"type": "string",
"pattern": "^EW[0-9]{6}",
"minLength": 8,
"maxLength": 8
"type": "string"
}
]
}
Expand All @@ -970,10 +967,7 @@
"minimum": 0
},
{
"type": "string",
"pattern": "^EW[0-9]{6}",
"minLength": 8,
"maxLength": 8
"type": "string"
}
]
}
Expand Down

0 comments on commit e6550d7

Please sign in to comment.