From e805766c26ef03cf302566a78d1c67b8982e6a1d Mon Sep 17 00:00:00 2001 From: Ross Smith II Date: Sat, 9 Mar 2019 12:39:20 -0800 Subject: [PATCH] Add hashExtractionOrArrayOfHashExtractions to schema --- schema.json | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/schema.json b/schema.json index b81448f554..d3d29851cc 100644 --- a/schema.json +++ b/schema.json @@ -82,6 +82,21 @@ }, "type": "object" }, + "hashExtractionOrArrayOfHashExtractions": { + "anyOf": [ + { + "$ref": "#/definitions/hashExtraction" + }, + { + "items": { + "$ref": "#/definitions/hashExtraction" + }, + "minItems": 1, + "type": "array", + "uniqueItems": false + } + ] + }, "architecture": { "additionalProperties": false, "properties": { @@ -161,7 +176,7 @@ "$ref": "#/definitions/uriOrArrayOfUris" }, "hash": { - "$ref": "#/definitions/hashExtraction" + "$ref": "#/definitions/hashExtractionOrArrayOfHashExtractions" } }, "type": "object" @@ -176,7 +191,7 @@ "$ref": "#/definitions/uriOrArrayOfUris" }, "hash": { - "$ref": "#/definitions/hashExtraction" + "$ref": "#/definitions/hashExtractionOrArrayOfHashExtractions" } }, "type": "object" @@ -188,7 +203,7 @@ "type": "string" }, "hash": { - "$ref": "#/definitions/hashExtraction" + "$ref": "#/definitions/hashExtractionOrArrayOfHashExtractions" }, "note": { "$ref": "#/definitions/stringOrArrayOfStrings"