Skip to content

Commit

Permalink
added support to osf/metadata/schemas/datacite.json for url identific…
Browse files Browse the repository at this point in the history
…ation for resources (GitHub issue CenterForOpenScience#10369)
  • Loading branch information
Sam Sheckell authored and Sam Sheckell committed Apr 26, 2024
1 parent a990cf2 commit b8b3825
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions osf/metadata/schemas/datacite.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
"type": "string",
"pattern": "10\\..+/.+"
},
"contentURL": {
"description": "Content url that allows for identification outside of DOI.",
"type": "string",
"pattern": "https://osf.io+"
},
"year": {
"type": "string"
},
Expand Down Expand Up @@ -47,15 +52,21 @@
"type": "object",
"properties": {
"identifier": {
"description": "A persistent identifier that identifies a resource. Currently, only DOI is allowed.",
"description": "A persistent identifier that identifies a resource. Can use DOI or URL.",
"type": "object",
"properties": {
"identifier": {
"$ref": "#/definitions/doi"
"DOI": {
"$ref": "#/definitions/doi"
},
"URL": {
"$ref": "#/definitions/contentURL"
}
},
"identifierType": {
"enum": [
"DOI"
"DOI",
"URL"
]
}
},
Expand Down

0 comments on commit b8b3825

Please sign in to comment.