Add #[serde(deny_unknown_fields)] to action structs that didn't have it (#33679)

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2025-06-30 18:20:02 -06:00 committed by GitHub
parent c74ecb4654
commit f022a13091
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 16 additions and 1 deletions

View file

@ -16,9 +16,11 @@ fn test_action_macros() {
#[derive(PartialEq, Clone, Deserialize, JsonSchema, Action)]
#[action(namespace = test_only)]
struct AnotherSomeAction;
#[serde(deny_unknown_fields)]
struct AnotherAction;
#[derive(PartialEq, Clone, gpui::private::serde_derive::Deserialize)]
#[serde(deny_unknown_fields)]
struct RegisterableAction {}
register_action!(RegisterableAction);