Skip to content

Commit e6e4415

Browse files
committed
fix(config): validate accessibility section in cli
1 parent e9d5db9 commit e6e4415

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/config/config_validate.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ namespace noctalia::config {
591591

592592
void appendMergedConfigDiagnostics(const toml::table& merged, schema::Diagnostics& diag) {
593593
checkSection(merged, "shell", schema::shellSchema(), diag);
594+
checkSection(merged, "accessibility", schema::accessibilitySchema(), diag);
594595
checkSection(
595596
merged, "wallpaper", schema::wallpaperSchema(), diag,
596597
{"wallpaper.default", "wallpaper.last", "wallpaper.monitors", "wallpaper.favorite"}
@@ -644,6 +645,7 @@ namespace noctalia::config {
644645
// Unknown top-level sections.
645646
static const std::unordered_set<std::string> kKnownSections = {
646647
"shell",
648+
"accessibility",
647649
"wallpaper",
648650
"theme",
649651
"backdrop",

tests/config_validate_cli_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ esac
2222
warn_output=$("$noctalia_bin" config validate tests/config_validate/warn-only.toml 2>&1) \
2323
|| fail "warning-only config should validate"
2424
case "$warn_output" in
25-
*"WARN shell.ui_scl: unknown setting"*) ;;
25+
*"WARN accessibility.ui_scl: unknown setting"*) ;;
2626
*) fail "warning-only config did not report the unknown setting" ;;
2727
esac
2828

0 commit comments

Comments
 (0)