From 86fd88171d3007dd2b11dab627999e0b5bb6cdb0 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 20 Jan 2021 02:07:05 +0100 Subject: [PATCH] Fix port number schema's --- src/config.schema.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/config.schema.json b/src/config.schema.json index 8bee4bc..081c407 100644 --- a/src/config.schema.json +++ b/src/config.schema.json @@ -114,7 +114,9 @@ }, "ingress_port": { "default": 8099, - "type": "integer" + "type": "integer", + "minimum": 0, + "maximum": 65535 }, "init": { "default": true, @@ -161,7 +163,10 @@ }, "ports": { "additionalProperties": { - "type": "integer" + "anyOf": [ + { "type": "integer", "minimum": 1, "maximum": 65535 }, + { "type": "null" } + ] }, "type": "object" },