From c9462bf48cbe3d7b765e4ed3998da81911faf3b4 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Wed, 10 Feb 2021 17:58:17 +0000 Subject: [PATCH] inputs: add "type" property to schema This was missed when `type` was added to the Inputs class. --- inputs/org.osbuild.files | 5 ++++- inputs/org.osbuild.ostree | 5 ++++- inputs/org.osbuild.tree | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/inputs/org.osbuild.files b/inputs/org.osbuild.files index 6529dfe0..5d2d2e9b 100755 --- a/inputs/org.osbuild.files +++ b/inputs/org.osbuild.files @@ -24,8 +24,11 @@ from osbuild.objectstore import StoreClient SCHEMA = r""" "additionalProperties": false, -"required": ["origin", "references"], +"required": ["type", "origin", "references"], "properties": { + "type": { + "enum": ["org.osbuild.files"] + }, "origin": { "description": "The origin of the input (must be 'org.osbuild.source')", "type": "string", diff --git a/inputs/org.osbuild.ostree b/inputs/org.osbuild.ostree index 3c8bd098..b85314f0 100755 --- a/inputs/org.osbuild.ostree +++ b/inputs/org.osbuild.ostree @@ -22,8 +22,11 @@ from osbuild.objectstore import StoreClient SCHEMA = """ "additionalProperties": false, -"required": ["origin", "references"], +"required": ["type", "origin", "references"], "properties": { + "type": { + "enum": ["org.osbuild.ostree"] + }, "origin": { "description": "The origin of the input (must be 'org.osbuild.source')", "type": "string", diff --git a/inputs/org.osbuild.tree b/inputs/org.osbuild.tree index dc42007a..62c3af5b 100755 --- a/inputs/org.osbuild.tree +++ b/inputs/org.osbuild.tree @@ -17,8 +17,11 @@ from osbuild.objectstore import StoreClient SCHEMA = """ "additionalProperties": false, -"required": ["origin", "references"], +"required": ["type", "origin", "references"], "properties": { + "type": { + "enum": ["org.osbuild.tree"] + }, "origin": { "description": "The origin of the input (must be 'org.osbuild.pipeline')", "type": "string",