From f2f0f591ee9326c9997457c594d79393c03dd20a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=BClte?= Date: Thu, 23 Jan 2025 10:49:04 +0100 Subject: [PATCH] Set hasSuperordinate for isPartOf as required #2136 --- src/test/resources/schemas/isPartOf.json | 67 +++++++++++++----------- 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/src/test/resources/schemas/isPartOf.json b/src/test/resources/schemas/isPartOf.json index e6fa0d52f..50963f863 100644 --- a/src/test/resources/schemas/isPartOf.json +++ b/src/test/resources/schemas/isPartOf.json @@ -1,37 +1,40 @@ { - "$id": "isPartOf.json", - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Is part of", - "description": "The isPartOf relation", - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "array", - "items": { - "type": "string", - "const": "IsPartOfRelation" - } - }, - "numbering": { - "type": "string" + "$id": "isPartOf.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Is part of", + "description": "The isPartOf relation", + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "array", + "items": { + "type": "string", + "const": "IsPartOfRelation" + } + }, + "numbering": { + "type": "string" + }, + "hasSuperordinate": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uri" }, - "hasSuperordinate": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "format": "uri" - }, - "label": { - "type": "string" - } - } - } + "label": { + "type": "string" } + } } - } + } + }, + "required": [ + "hasSuperordinate" + ] + } }