Allow null values for optional account properties

This commit is contained in:
Basti 2021-07-30 09:57:07 +02:00
parent e6ab24db9a
commit 86c2ac04ba
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72

View File

@ -16,22 +16,22 @@ const Kosmos = function(privateClient/*, publicClient*/) {
"enum": ["IRC", "XMPP"] // Mattermost, Slack, ... "enum": ["IRC", "XMPP"] // Mattermost, Slack, ...
}, },
"username": { "username": {
"type": "string" "type": [ "string", "null" ]
}, },
"password": { "password": {
"type": "string" "type": [ "string", "null" ]
}, },
"nickname": { "nickname": {
"type": "string" "type": [ "string", "null" ]
}, },
"server": { "server": {
"type": "object", "type": "object",
"properties": { "properties": {
"hostname": { "hostname": {
"type": "string" "type": [ "string", "null" ]
}, },
"port": { "port": {
"type": "number" "type": [ "number", "null" ]
}, },
"secure": { "secure": {
"type": "boolean" "type": "boolean"
@ -39,7 +39,7 @@ const Kosmos = function(privateClient/*, publicClient*/) {
} }
}, },
"botkaURL": { "botkaURL": {
"type": "string" "type": [ "string", "null" ]
} }
}, },
"required": [ "required": [