Skip to content

validate ORCID iDs #122

@atmodatcode

Description

@atmodatcode

For future ATMODAT versions, we could consider checking if users correctly specified their ORCIDs, especially in the property creator_id.
This is how it should work.

import re
pattern = re.compile(r"^(https://orcid.org/[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{3}[0-9|X])+$")
orcid = "https://orcid.org/0000-0001-7057-194X"
bool(re.match(pattern, orcid)) # False if ORCID syntax is wrongly specified

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions