From 74734a3c4591e76dc1e2a3d7c29cc40fbb9b952a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 9 Jan 2025 12:45:49 +0100 Subject: [PATCH] manifest schema: apt requires either packages or packages_from_raw_bash --- schemas/manifest.v2.schema.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/schemas/manifest.v2.schema.json b/schemas/manifest.v2.schema.json index 742995ced1..cffb24bdaa 100644 --- a/schemas/manifest.v2.schema.json +++ b/schemas/manifest.v2.schema.json @@ -319,6 +319,10 @@ "apt": { "type": "object", "required": [], + "anyOf": [ + {"required" : ["packages"]}, + {"required" : ["packages_from_raw_bash"]} + ], "additionalProperties": false, "properties": { "packages": { @@ -333,8 +337,11 @@ "^.[a-z][a-z0-9_]*$": { "type": "object", "required": [ - "repo", - "packages" + "repo" + ], + "anyOf": [ + {"required" : ["packages"]}, + {"required" : ["packages_from_raw_bash"]} ], "additionalProperties": false, "properties": {