diff --git a/metadata_backend/helpers/schemas/folders.json b/metadata_backend/helpers/schemas/folders.json index a95844d62..0f6e97ba4 100644 --- a/metadata_backend/helpers/schemas/folders.json +++ b/metadata_backend/helpers/schemas/folders.json @@ -928,21 +928,86 @@ "type": "object", "title": "The extra DOI info schema", "properties": { - "identifier": { + "studyIdentifier": { "type": "object", - "title": "identifier object", "required": [ - "identifierType", - "doi" + "accessionId", + "identifier", + "url" ], "properties": { - "identifierType": { + "identifier": { + "type": "object", + "title": "identifier object", + "required": [ + "identifierType", + "doi" + ], + "properties": { + "identifierType": { + "type": "string", + "title": "Type of identifier (= DOI)" + }, + "doi": { + "type": "string", + "title": "A persistent identifier for a resource" + } + } + }, + "accessionId": { "type": "string", - "title": "Type of identifier (= DOI)" + "title": "Internal accessionId for the study" }, - "doi": { + "url": { "type": "string", - "title": "A persistent identifier for a resource" + "title": "URL of the digital location of the object" + }, + "types": { + "type": "object", + "title": "Type info of the resource. Multiple types can be listed: ResourceTypeGeneral, schemaOrg etc." + } + } + }, + "datasetIdentifiers": { + "type": "array", + "items": { + "type": "object", + "required": [ + "accessionId", + "identifier", + "url" + ], + "properties": { + "identifier": { + "type": "object", + "title": "identifier object", + "required": [ + "identifierType", + "doi" + ], + "properties": { + "identifierType": { + "type": "string", + "title": "Type of identifier (= DOI)" + }, + "doi": { + "type": "string", + "title": "A persistent identifier for a resource" + } + } + }, + "accessionId": { + "type": "string", + "title": "Internal accessionid for the dataset" + }, + "url": { + "type": "string", + "title": "URL of the digital location of the object" + }, + "types": { + "type": "object", + "title": "Type info of the resource. Multiple types can be listed: ResourceTypeGeneral, schemaOrg etc." + } } } }, @@ -954,14 +1019,6 @@ "type": "integer", "title": "Publication Year" }, - "types": { - "type": "object", - "title": "Type info of the resource. Multiple types can be listed: ResourceTypeGeneral, schemaOrg etc." - }, - "url": { - "type": "string", - "title": "URL of the digital location of the object" - }, "version": { "type": "string", "title": "Version number of the resource"