Channel Plugin Config Option of type Boolean is stored as a string in the database
Opened this issue · 0 comments
oxzi commented
After creating a channel plugin with the following shortened config_attrs
value in the available_channel_type
table, the stored config
in the channels
table looks like this.
available_channel_type.config_attrs
:
[
{
"name": "tls_insecure",
"type": "bool",
"label": {
"de_DE": "Keine TLS-Verifizierung",
"en_US": "No TLS Verification"
},
"help": {
"de_DE": "Führe keine TLS-Verifizierung durch. Dies vermag unsicher zu sein.",
"en_US": "Skip TLS verification. This might be insecure."
},
"default": false,
"min": null,
"max": null
}
]
config.channels
:
{
"tls_insecure": "n"
}
The boolean value will be stored as a string of either "y"
or "n"
instead of an expected JSON boolean.