From d2ddc79bd81fa266749c177904ebd2c0a8438792 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 20 Jan 2021 00:49:34 +0100 Subject: [PATCH] Fix port description type (#13) --- src/config.schema.json | 2 +- src/config.schema.ts | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/config.schema.json b/src/config.schema.json index 2b3f368..37bfc9c 100644 --- a/src/config.schema.json +++ b/src/config.schema.json @@ -161,7 +161,7 @@ }, "ports": { "additionalProperties": { - "type": "integer" + "type": "string" }, "type": "object" }, diff --git a/src/config.schema.ts b/src/config.schema.ts index da5d4a1..4fc5123 100644 --- a/src/config.schema.ts +++ b/src/config.schema.ts @@ -177,13 +177,7 @@ export interface Config { [key: string]: number; }; - ports?: { - /** - * @min 1 - * @max 65535 - */ - [key: string]: number; - }; + ports?: { [key: string]: string; }; privileged?: "DAC_READ_SEARCH" | "NET_ADMIN" | "SYS_ADMIN" | "SYS_MODULE" | "SYS_NICE" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME";