From 12f013ae60e4059a215aa14356d692c64466b140 Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Mon, 9 Oct 2023 23:39:32 +0200 Subject: [PATCH] Add config version validation --- internal/validation/schemas/config.schema.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/validation/schemas/config.schema.json b/internal/validation/schemas/config.schema.json index 7347858..9d0d4b7 100644 --- a/internal/validation/schemas/config.schema.json +++ b/internal/validation/schemas/config.schema.json @@ -4,7 +4,8 @@ "type": "object", "properties": { "config_version": { - "type": "number" + "type": "number", + "const": 1 }, "firewall": { "type": ["number","string","boolean","object","array", "null"]