]> Untitled Git - lemmy.git/commit
Set attribute `deny_unknown_fields` for Lemmy config (#2852)
authorNutomic <me@nutomic.com>
Fri, 12 May 2023 00:12:12 +0000 (02:12 +0200)
committerGitHub <noreply@github.com>
Fri, 12 May 2023 00:12:12 +0000 (20:12 -0400)
commitaf5175a282836356f98fd04c88625e4d29ae5835
treea99e78fc17410648ce61f649d24133bbb2a131c0
parent32a5567cbffbc540e19dca61d370b9d078e37d30
Set attribute `deny_unknown_fields` for Lemmy config (#2852)

With this attribute, Lemmy will throw an error and exit if any
invalid entry is found in the config file. I think can be useful
to notice typos or keys that were removed or renamed in an upgrade.
Currently you wouldnt notice these at all unless you manually
compare the config file with settings that are listed in documentation.

This should be considered a breaking change.

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
crates/utils/src/error.rs
crates/utils/src/settings/mod.rs
crates/utils/src/settings/structs.rs