mirror of
https://github.com/starship/starship.git
synced 2026-06-24 02:01:36 +07:00
feat(schema): deny unknown keys (#4270)
This commit is contained in:
+5
-1
@@ -82,7 +82,11 @@ pub mod zig;
|
||||
pub use starship_root::*;
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Default)]
|
||||
#[cfg_attr(feature = "config-schema", derive(schemars::JsonSchema))]
|
||||
#[cfg_attr(
|
||||
feature = "config-schema",
|
||||
derive(schemars::JsonSchema),
|
||||
schemars(deny_unknown_fields)
|
||||
)]
|
||||
#[serde(default)]
|
||||
pub struct FullConfig<'a> {
|
||||
// Meta
|
||||
|
||||
Reference in New Issue
Block a user