Allow null values for optional account properties
This commit is contained in:
parent
e6ab24db9a
commit
86c2ac04ba
12
index.js
12
index.js
@ -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": [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user