From 7576191c2d517d33745f40e883c250411afbb3ab Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Tue, 29 Jun 2021 14:03:32 +0200 Subject: [PATCH] sources/inline: fix schema The top-level node "items" was not defined and the required property "encoding" was wrongly called "method". --- sources/org.osbuild.inline | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sources/org.osbuild.inline b/sources/org.osbuild.inline index b942ab5c..4e33a53f 100755 --- a/sources/org.osbuild.inline +++ b/sources/org.osbuild.inline @@ -24,9 +24,7 @@ from osbuild.util.checksum import verify_file SCHEMA = """ -"additionalProperties": false, -"required": ["items"], -"properties": { +"definitions": { "item": { "description": "Inline data indexed by their checksum", "type": "object", @@ -35,7 +33,7 @@ SCHEMA = """ "(md5|sha1|sha256|sha384|sha512):[0-9a-f]{32,128}": { "type": "object", "additionalProperties": false, - "required": ["method", "data"], + "required": ["encoding", "data"], "properties": { "encoding": { "description": "The specific encoding of `data`", @@ -49,6 +47,11 @@ SCHEMA = """ } } } +}, +"additionalProperties": false, +"required": ["items"], +"properties": { + "items": {"$ref": "#/definitions/item"} } """