mirror of
https://github.com/soywod/himalaya.git
synced 2024-07-05 09:05:13 +00:00
prevent unknown fields at top config level
This commit is contained in:
parent
362a5ca647
commit
3868c62511
|
@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Fixed watch IMAP envelopes when folder was empty [#179].
|
- Fixed watch IMAP envelopes when folder was empty [#179].
|
||||||
|
- Prevent parsing of undefined config options [#188].
|
||||||
|
|
||||||
## [1.0.0-beta.3] - 2024-02-25
|
## [1.0.0-beta.3] - 2024-02-25
|
||||||
|
|
||||||
|
@ -806,3 +807,4 @@ Few major concepts changed:
|
||||||
[#95]: https://todo.sr.ht/~soywod/pimalaya/95
|
[#95]: https://todo.sr.ht/~soywod/pimalaya/95
|
||||||
[#172]: https://todo.sr.ht/~soywod/pimalaya/172
|
[#172]: https://todo.sr.ht/~soywod/pimalaya/172
|
||||||
[#173]: https://todo.sr.ht/~soywod/pimalaya/173
|
[#173]: https://todo.sr.ht/~soywod/pimalaya/173
|
||||||
|
[#188]: https://todo.sr.ht/~soywod/pimalaya/188
|
||||||
|
|
|
@ -23,7 +23,7 @@ use crate::{account::config::TomlAccountConfig, wizard_prompt, wizard_warn};
|
||||||
|
|
||||||
/// Represents the user config file.
|
/// Represents the user config file.
|
||||||
#[derive(Clone, Debug, Default, Eq, PartialEq, Deserialize, Serialize)]
|
#[derive(Clone, Debug, Default, Eq, PartialEq, Deserialize, Serialize)]
|
||||||
#[serde(rename_all = "kebab-case")]
|
#[serde(rename_all = "kebab-case", deny_unknown_fields)]
|
||||||
pub struct TomlConfig {
|
pub struct TomlConfig {
|
||||||
#[serde(alias = "name")]
|
#[serde(alias = "name")]
|
||||||
pub display_name: Option<String>,
|
pub display_name: Option<String>,
|
||||||
|
|
Loading…
Reference in a new issue