From b8b3825a6485a55cad91beb9dd5ecc5513cc55cd Mon Sep 17 00:00:00 2001 From: Sam Sheckell Date: Fri, 26 Apr 2024 14:11:54 -0400 Subject: [PATCH] added support to osf/metadata/schemas/datacite.json for url identification for resources (GitHub issue #10369) --- osf/metadata/schemas/datacite.json | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/osf/metadata/schemas/datacite.json b/osf/metadata/schemas/datacite.json index 84460feaf0f..858d86498a5 100644 --- a/osf/metadata/schemas/datacite.json +++ b/osf/metadata/schemas/datacite.json @@ -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" }, @@ -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" ] } },