diff --git a/crates/topos/src/config/base.rs b/crates/topos/src/config/base.rs index f6043808c..2f0fdcd32 100644 --- a/crates/topos/src/config/base.rs +++ b/crates/topos/src/config/base.rs @@ -11,6 +11,7 @@ use crate::config::node::NodeRole; use crate::config::Config; #[derive(Serialize, Deserialize, Debug, Clone)] +#[serde(rename_all = "kebab-case")] pub struct BaseConfig { #[serde(default = "default_name")] pub name: String, diff --git a/crates/topos/src/config/edge.rs b/crates/topos/src/config/edge.rs index 22543e799..4691b0ff3 100644 --- a/crates/topos/src/config/edge.rs +++ b/crates/topos/src/config/edge.rs @@ -15,8 +15,8 @@ use crate::components::subnet::commands::Run; // TODO: Provides the default arguments here // Serde `flatten` and `default` doesn't work together yet // https://github.com/serde-rs/serde/issues/1626 - #[derive(Serialize, Deserialize, Debug, Clone)] +#[serde(rename_all = "kebab-case")] pub struct EdgeConfig { #[serde(flatten)] pub args: HashMap, diff --git a/crates/topos/src/config/sequencer.rs b/crates/topos/src/config/sequencer.rs index de3e16bd1..5b045ab85 100644 --- a/crates/topos/src/config/sequencer.rs +++ b/crates/topos/src/config/sequencer.rs @@ -9,6 +9,7 @@ use figment::{ use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Debug, Clone)] +#[serde(rename_all = "kebab-case")] pub struct SequencerConfig { /// SubnetId of your Sequencer, hex encoded 32 bytes prefixed with 0x pub subnet_id: Option,