Skip to content

Commit

Permalink
Added contributors field to import schema (#392)
Browse files Browse the repository at this point in the history
Co-authored-by: Drini Cami <cdrini@gmail.com>
  • Loading branch information
Billa05 and cdrini authored May 24, 2024
1 parent 940ac24 commit 7e45d51
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions olclient/schemata/import.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
"type": "array",
"items": { "$ref": "#/definitions/import_author" }
},
"contributor": {
"type": "array",
"items": {
"$ref": "#/definitions/import_contributor"
}
},
"publish_date": {
"type": "string",
"description": "The publication date in Extended Date/Time Format (EDTF) -- https://www.loc.gov/standards/datetime/",
Expand Down Expand Up @@ -159,6 +165,30 @@
"examples": ["duc d'Otrante"]
}
}
},
"import_contributor": {
"type": "object",
"additionalProperties": false,
"required": [
"name"
],
"properties": {
"role": {
"type": "string",
"examples": [
"Author",
"Editor",
"Illustrator"
]
},
"name": {
"type": "string",
"examples": [
"Freeman H. Hubbard",
"Joan Miró"
]
}
}
}
}
}

0 comments on commit 7e45d51

Please sign in to comment.