From 376cbffd136bc4ba86fc7c63697fa5b88fe3acef Mon Sep 17 00:00:00 2001 From: David Rheinsberg Date: Mon, 25 Jul 2022 12:08:57 +0200 Subject: [PATCH] schemas/osbuild2: mark `version` as required The v2 manifest requires the `version` key to be present to be distinguishable from v1. While technically the manifest can be used standalong without a `version` key, it does prevent us implementing the manifest correctly in osbuild (i.e., we are unable to process a v2 manifest without the `version` key, because we are unable to autodetect it then). Mark the key as required. It does kind of break backwards compatibility of the schema, but at the same time we always treated it this way, anyway. So this should be fine. Signed-off-by: David Rheinsberg --- schemas/osbuild2.json | 1 + 1 file changed, 1 insertion(+) diff --git a/schemas/osbuild2.json b/schemas/osbuild2.json index 3d92bd3f..96795c53 100644 --- a/schemas/osbuild2.json +++ b/schemas/osbuild2.json @@ -6,6 +6,7 @@ "description": "OSBuild manifest describing a pipeline and all parameters", "type": "object", "additionalProperties": false, + "required": ["version"], "properties": { "pipelines": { "$ref": "#/definitions/pipelines" }, "sources": { "$ref": "#/definitions/sources" },