input4mips_validation.validation.orcid#
input4mips_validation.validation.orcid
#
Validation of ORCID's
REGEXP_CHECKER: str = '[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{3}[0-9X]'
module-attribute
#
Regular expression to use to check that the ORCID is correct.
Technically, this regular expression is not strict enough to check the ORCID is actually valid. However, this is a helpful first check (if this fails, the ORCID is definitely wrong).
This constant is exposed for clarity. If you change it, we do not guarantee correct performance of the codebase.
validate_orcid(orcid)
#
Validate that an ORCID is (probably) valid
Using the information here to define valid.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
orcid
|
str
|
ORCID to validate |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
|