From 86c2ac04ba6c121658e0604ed243cf32ae7dc190 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Fri, 30 Jul 2021 09:57:07 +0200 Subject: [PATCH] Allow null values for optional account properties --- index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index a67316d..0a93d03 100644 --- a/index.js +++ b/index.js @@ -16,22 +16,22 @@ const Kosmos = function(privateClient/*, publicClient*/) { "enum": ["IRC", "XMPP"] // Mattermost, Slack, ... }, "username": { - "type": "string" + "type": [ "string", "null" ] }, "password": { - "type": "string" + "type": [ "string", "null" ] }, "nickname": { - "type": "string" + "type": [ "string", "null" ] }, "server": { "type": "object", "properties": { "hostname": { - "type": "string" + "type": [ "string", "null" ] }, "port": { - "type": "number" + "type": [ "number", "null" ] }, "secure": { "type": "boolean" @@ -39,7 +39,7 @@ const Kosmos = function(privateClient/*, publicClient*/) { } }, "botkaURL": { - "type": "string" + "type": [ "string", "null" ] } }, "required": [