-
Notifications
You must be signed in to change notification settings - Fork 188
Closed
Labels
json schemaprio: should-havewould be very good to have in the releasewould be very good to have in the release
Milestone
Description
In extensions/scientific/json-schema/schema.json
"sci:doi": {
"type": "string",
"title": "Data DOI",
"pattern": "^(10[.][0-9]{4,}(?:[.][0-9]+)*/(?:(?![%\"#? ])\\S)+)$"
},
This is too narrow: [0-9]{4,}
a unique alphanumeric string assigned to an organization
that wishes to register DOI names (four digit numeric codes
are currently used though this is not a compulsory syntax).
The registrant code is assigned through a DOI registration
agency, and a registrant may have multiple-registrant
codes.
The registrant code is a unique string assigned to a registrant.
So my best guess at what the doi regex should be is this based on the alphanumeric statement in the pdf.
"pattern": "^(10[.][0-9a-zA-Z]+(?:[.][0-9a-zA-Z]+)*/(?:(?![%\"#? ])\\S)+)$"
So this should be a valid doi if the prefix was registered: 10.123abc.foo.bar/issn.1476-4687/this/is/nuts
I'm not sure what the suffix part of the pattern will match: (?:(?![%\"#? ])\\S)+)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
json schemaprio: should-havewould be very good to have in the releasewould be very good to have in the release