Align network config schema strictness

This commit is contained in:
canvrno-oai
2026-05-27 19:29:27 +00:00
parent 292135d23f
commit e0d41ce74f

View File

@@ -101,6 +101,7 @@ impl fmt::Display for NetworkProxyMode {
/// `http://proxy.example:8080`). It is deliberately not a PAC/WPAD URL, and
/// callers must redact credentials before logging it.
#[derive(Serialize, Deserialize, Default, Clone, PartialEq, Eq, JsonSchema)]
#[schemars(deny_unknown_fields)]
pub struct NetworkConfigToml {
/// Proxy selection mode. Defaults to `auto` when omitted.
#[serde(default)]