Skip to content

Commit

Permalink
Merge pull request #9 from seasidesparrow/main
Browse files Browse the repository at this point in the history
Changed heirarchy for relatedTo and pubDate.otherDate to be arrays rather than single objects
  • Loading branch information
seasidesparrow authored Mar 30, 2022
2 parents f15dc0e + 0c76f7d commit 8743f3c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
6 changes: 5 additions & 1 deletion adsingestschema/Document.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"$ref": "./RecordData.json"
},
"relatedTo": {
"$ref": "./RelatedTo.json"
"type": "array",
"description": "Array of RelatedTo.json objects",
"items": {
"$ref": "./RelatedTo.json"
}
},
"editorialHistory": {
"$ref": "./EdHist.json"
Expand Down
14 changes: 9 additions & 5 deletions adsingestschema/PubDates.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@
"printDate": {
"type": "string"
},
"otherPubDate": {
"type": "object",
"properties": {
"otherDateType": "string",
"otherDate": "string"
"otherDate": {
"type": "array",
"description": "Array of date-like objects (e.g. 'submitted', 'revised', 'accepted')",
"items": {
"type": "object",
"properties": {
"otherDateType": "string",
"otherDateValue": "string"
}
}
}
}
Expand Down

0 comments on commit 8743f3c

Please sign in to comment.