diff --git a/packages/apis/src/extract_substrs.rs b/packages/apis/src/extract_substrs.rs index b805f8c..ab61100 100644 --- a/packages/apis/src/extract_substrs.rs +++ b/packages/apis/src/extract_substrs.rs @@ -4,12 +4,14 @@ use thiserror::Error; /// A configuration of decomposed regexes. #[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] pub struct DecomposedRegexConfig { pub parts: Vec, } /// Decomposed regex part. #[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] pub struct RegexPartConfig { /// A flag indicating whether the substring matching with `regex_def` should be exposed. pub is_public: bool,