From 7e45d512d031970d2bf4f56ca23f6247f205a0a8 Mon Sep 17 00:00:00 2001 From: Biresh Biswas <90760974+Billa05@users.noreply.github.com> Date: Fri, 24 May 2024 23:24:31 +0530 Subject: [PATCH] Added contributors field to import schema (#392) Co-authored-by: Drini Cami --- olclient/schemata/import.schema.json | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/olclient/schemata/import.schema.json b/olclient/schemata/import.schema.json index 2a04b145..3f00e902 100644 --- a/olclient/schemata/import.schema.json +++ b/olclient/schemata/import.schema.json @@ -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/", @@ -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Ă³" + ] + } + } } } }