Skip to content

Commit

Permalink
Update schemas with required fields
Browse files Browse the repository at this point in the history
Add givenName and familyName as required fields to datacite and folder schemas
for creators and contributor fields items.
  • Loading branch information
genie9 committed Apr 4, 2022
1 parent 87f204f commit edb7992
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion metadata_backend/helpers/schemas/datacite.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"items": {
"type": "object",
"title": "Main researcher(s) involved with data or the author(s) of the publication.",
"required": [
"givenName",
"familyName"
],
"properties": {
"givenName": {
"type": "string",
Expand Down Expand Up @@ -175,6 +179,8 @@
"type": "object",
"title": "Contributor",
"required": [
"givenName",
"familyName",
"contributorType"
],
"properties": {
Expand Down Expand Up @@ -860,4 +866,4 @@
"uniqueItems": true
}
}
}
}
8 changes: 7 additions & 1 deletion metadata_backend/helpers/schemas/folders.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
"items": {
"type": "object",
"title": "Main researcher(s) involved with data or the author(s) of the publication.",
"required": [
"givenName",
"familyName"
],
"properties": {
"givenName": {
"type": "string",
Expand Down Expand Up @@ -225,6 +229,8 @@
"type": "object",
"title": "Contributor",
"required": [
"givenName",
"familyName",
"contributorType"
],
"properties": {
Expand Down Expand Up @@ -1107,4 +1113,4 @@
}
},
"additionalProperties": false
}
}

0 comments on commit edb7992

Please sign in to comment.