From df91d8916d10d18cb1081f57d3e3f14f2bb51a96 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Tue, 12 Apr 2022 22:26:55 +0200 Subject: [PATCH] inputs/tree: enforce constraints for plain refs When using "plain refs", that is, when using an array of strings, we did not enforce the constraints of exactly one reference. This was done for dictionary references. --- inputs/org.osbuild.tree | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inputs/org.osbuild.tree b/inputs/org.osbuild.tree index 97ac2f7a..b1cef0e1 100755 --- a/inputs/org.osbuild.tree +++ b/inputs/org.osbuild.tree @@ -30,6 +30,8 @@ SCHEMA = """ "oneOf": [{ "type": "array", "additionalItems": false, + "minItems": 1, + "maxItems": 1, "items": [{ "type": "string" }]