diff --git a/game/src/models/commands.rs b/game/src/models/commands.rs index 7bb2c42..12db19b 100644 --- a/game/src/models/commands.rs +++ b/game/src/models/commands.rs @@ -57,7 +57,7 @@ pub struct VerbAndTargetEntry { } #[derive(Debug, Serialize, Deserialize, Clone, Gbnf)] -#[serde(rename_all = "camelCase")] +#[serde(rename_all = "snake_case")] pub struct RawCommandExecution { pub valid: bool, pub reason: Option, @@ -79,7 +79,7 @@ impl RawCommandExecution { } #[derive(Debug, Serialize, Deserialize, Clone, Gbnf)] -#[serde(rename_all = "camelCase")] +#[serde(rename_all = "snake_case")] pub struct RawCommandEvent { pub event_name: String, #[gbnf_limit]