From ce17b97211e3704dccc647e66f52ac9a20dbee19 Mon Sep 17 00:00:00 2001 From: SimonTaurus Date: Thu, 21 Nov 2024 10:27:48 +0100 Subject: [PATCH] fix: allow @type be of type array see https://www.researchobject.org/ro-crate/specification/1.1/data-entities.html#referencing-files-and-folders-from-the-root-data-entity --- tests/schema.json | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/schema.json b/tests/schema.json index 6c5e711..7cb4f48 100644 --- a/tests/schema.json +++ b/tests/schema.json @@ -15,7 +15,17 @@ "type": "string" }, "@type": { - "type": "string" + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ] }, "about": { "type": "object",