From 47eb5f19eebcdfda7df3fee7e89aa9b55cf2a3f6 Mon Sep 17 00:00:00 2001 From: Matthias Mohr Date: Thu, 1 Aug 2024 13:44:07 +0200 Subject: [PATCH] Fix JSON schema --- json-schema/schema.json | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/json-schema/schema.json b/json-schema/schema.json index b25d79e..784dd63 100644 --- a/json-schema/schema.json +++ b/json-schema/schema.json @@ -82,7 +82,9 @@ { "properties": { "item_assets": { - "$ref": "#/definitions/validate_assets" + "additionalProperties": { + "$ref": "#/definitions/validate_properties" + } } } }, @@ -92,12 +94,17 @@ { "properties": { "summaries": { - "type": [ - "array", - "object" - ], - "items": { - "$ref": "#/definitions/attribution" + "type": "object", + "properties": { + "attribution": { + "type": [ + "array", + "object" + ], + "items": { + "$ref": "#/definitions/attribution" + } + } } } } @@ -129,13 +136,7 @@ ], "properties": { "summaries": { - "type": [ - "array", - "object" - ], - "items": { - "$ref": "#/definitions/attribution" - } + "$ref": "#/definitions/require_properties" } } }