diff options
Diffstat (limited to 'src/configs/singularity.rs')
-rw-r--r-- | src/configs/singularity.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/configs/singularity.rs b/src/configs/singularity.rs index e11b6acbb..b9169389f 100644 --- a/src/configs/singularity.rs +++ b/src/configs/singularity.rs @@ -1,7 +1,11 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] -#[cfg_attr(feature = "config-schema", derive(schemars::JsonSchema))] +#[cfg_attr( + feature = "config-schema", + derive(schemars::JsonSchema), + schemars(deny_unknown_fields) +)] #[serde(default)] pub struct SingularityConfig<'a> { pub symbol: &'a str, |