From ef63c0de1472f3306c21e06291888611858d3726 Mon Sep 17 00:00:00 2001 From: Enno Tensing Date: Tue, 29 Jul 2025 09:25:19 +0200 Subject: [PATCH] containerrc: Remove optional parts from schema A container can be created from a name and an image, no other part is required. Reflect that in the JSON schema, by removing most top-level required entries. Also remove the hardcoded env-vars from the schema. Signed-off-by: Enno Tensing --- containerrc.json | 31 ++++--------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/containerrc.json b/containerrc.json index a8319ef..06ce0e9 100644 --- a/containerrc.json +++ b/containerrc.json @@ -101,19 +101,8 @@ ] }, "env": { - "type": "object", - "properties": { - "FOO": { - "type": "string" - }, - "MAN_WIDTH": { - "type": "string" - } - }, - "required": [ - "FOO", - "MAN_WIDTH" - ] + "type": "object" + } }, "secrets": { "type": "object" @@ -149,18 +138,6 @@ }, "required": [ "name", - "image", - "privileged", - "read_only", - "replace", - "pull_policy", - "restart", - "network", - "dns", - "ports", - "env", - "secrets", - "volumes", - "capabilities" + "image" ] -} +}