chore: add alternative config schema for the transition period

This commit is contained in:
Miodec 2023-10-02 17:48:37 +01:00
parent fc1e646a02
commit 8e2dff43be

View file

@ -89,9 +89,10 @@ const CONFIG_SCHEMA = joi.object({
singleListCommandLine: joi.string().valid("manual", "on"),
capsLockWarning: joi.boolean(),
playSoundOnError: joi.string().valid("off", ..._.range(1, 4).map(_.toString)),
playSoundOnClick: joi
.string()
.valid("off", ..._.range(1, 14).map(_.toString)),
playSoundOnClick: joi.alternatives().try(
joi.boolean(), //todo remove soon
joi.string().valid("off", ..._.range(1, 14).map(_.toString))
),
soundVolume: joi.string().valid("0.1", "0.5", "1.0"),
startGraphsAtZero: joi.boolean(),
showOutOfFocusWarning: joi.boolean(),