From e92b24229deee7d4ad183cc0d21824c5693524f1 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Mon, 31 May 2021 17:57:50 +0000 Subject: [PATCH] inputs/files: extract origin definition This is mostly to prepare the support for pipeline origins where this node will get reused in more than one place. --- inputs/org.osbuild.files | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/inputs/org.osbuild.files b/inputs/org.osbuild.files index 73d01549..3f704122 100755 --- a/inputs/org.osbuild.files +++ b/inputs/org.osbuild.files @@ -52,6 +52,11 @@ SCHEMA = r""" } } } + }, + "source-origin": { + "type": "string", + "description": "When the origin of the input is a source", + "enum": ["org.osbuild.source"] } }, "required": ["type", "origin", "references"], @@ -61,8 +66,7 @@ SCHEMA = r""" }, "origin": { "description": "The origin of the input (must be 'org.osbuild.source')", - "type": "string", - "enum": ["org.osbuild.source"] + "$ref": "#/definitions/source-origin" }, "references": { "description": "Checksums of files to use as files input",