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
|
@ -58,6 +58,7 @@ pub enum ExtensionCategoryFilter {
|
|||
|
||||
#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
|
||||
#[action(namespace = zed)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct Extensions {
|
||||
/// Filters the extensions page down to extensions that are in the specified category.
|
||||
#[serde(default)]
|
||||
|
@ -66,6 +67,7 @@ pub struct Extensions {
|
|||
|
||||
#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
|
||||
#[action(namespace = zed)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct DecreaseBufferFontSize {
|
||||
#[serde(default)]
|
||||
pub persist: bool,
|
||||
|
@ -73,6 +75,7 @@ pub struct DecreaseBufferFontSize {
|
|||
|
||||
#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
|
||||
#[action(namespace = zed)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct IncreaseBufferFontSize {
|
||||
#[serde(default)]
|
||||
pub persist: bool,
|
||||
|
@ -80,6 +83,7 @@ pub struct IncreaseBufferFontSize {
|
|||
|
||||
#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
|
||||
#[action(namespace = zed)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct ResetBufferFontSize {
|
||||
#[serde(default)]
|
||||
pub persist: bool,
|
||||
|
@ -87,6 +91,7 @@ pub struct ResetBufferFontSize {
|
|||
|
||||
#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
|
||||
#[action(namespace = zed)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct DecreaseUiFontSize {
|
||||
#[serde(default)]
|
||||
pub persist: bool,
|
||||
|
@ -94,6 +99,7 @@ pub struct DecreaseUiFontSize {
|
|||
|
||||
#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
|
||||
#[action(namespace = zed)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct IncreaseUiFontSize {
|
||||
#[serde(default)]
|
||||
pub persist: bool,
|
||||
|
@ -101,6 +107,7 @@ pub struct IncreaseUiFontSize {
|
|||
|
||||
#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
|
||||
#[action(namespace = zed)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct ResetUiFontSize {
|
||||
#[serde(default)]
|
||||
pub persist: bool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue