From dcc56d083f338bb4cdd903feefb68720757de0be Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Sat, 28 May 2022 20:09:57 +0200 Subject: [PATCH] stages/grub2.legacy: make schema stricter The code requires that `id`, `product` and `kernel` are defined for each entry. Reflect that in the schema. Require at least one entry. --- stages/org.osbuild.grub2.legacy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stages/org.osbuild.grub2.legacy b/stages/org.osbuild.grub2.legacy index 5edfadce..29b93e3f 100755 --- a/stages/org.osbuild.grub2.legacy +++ b/stages/org.osbuild.grub2.legacy @@ -131,9 +131,11 @@ SCHEMA = """ "entries": { "description": "List of entries to add to the boot menu", "type": "array", + "minItems": 1, "items": { "type": "object", "additionalProperties": false, + "required": ["id", "product", "kernel"], "properties": { "default": { "type": "boolean",