Add #[serde(deny_unknown_fields)]
to action structs that didn't have it (#33679)
Release Notes: - N/A
This commit is contained in:
parent
c74ecb4654
commit
f022a13091
6 changed files with 16 additions and 1 deletions
|
@ -31,6 +31,7 @@ impl FeatureFlag for SettingsUiFeatureFlag {
|
|||
|
||||
#[derive(Copy, Clone, Debug, Default, PartialEq, Deserialize, JsonSchema, Action)]
|
||||
#[action(namespace = zed)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct ImportVsCodeSettings {
|
||||
#[serde(default)]
|
||||
pub skip_prompt: bool,
|
||||
|
@ -38,6 +39,7 @@ pub struct ImportVsCodeSettings {
|
|||
|
||||
#[derive(Copy, Clone, Debug, Default, PartialEq, Deserialize, JsonSchema, Action)]
|
||||
#[action(namespace = zed)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct ImportCursorSettings {
|
||||
#[serde(default)]
|
||||
pub skip_prompt: bool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue