From c1c6ab6493cf1ea80f9cba8f9a2074a443e11d92 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Wed, 29 Jun 2022 19:04:31 +0200 Subject: [PATCH] stages/dnf.config: fix schema for `config.main` The properties for `main` were not properly defined and but also not really checked since `additionalProperties` was not defined. --- stages/org.osbuild.dnf.config | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/stages/org.osbuild.dnf.config b/stages/org.osbuild.dnf.config index 718e246c..7724cdf0 100755 --- a/stages/org.osbuild.dnf.config +++ b/stages/org.osbuild.dnf.config @@ -33,10 +33,14 @@ SCHEMA = r""" } }, "config_main": { - "ip_resolve": { - "type": "string", - "enum": ["4", "IPv4", "6", "IPv6"], - "description": "Determines how DNF resolves host names." + "type": "object", + "additionalProperties": false, + "properties": { + "ip_resolve": { + "type": "string", + "enum": ["4", "IPv4", "6", "IPv6"], + "description": "Determines how DNF resolves host names." + } } } },