Skip to content

Commit bcda953

Browse files
committed
rename all enum fields as well as variant tags so we get the expected names
1 parent 72ddaaf commit bcda953

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/configuration/src/version5/connection_settings.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ impl DatabaseConnectionSettings {
4141
}
4242

4343
#[derive(Clone, PartialEq, Eq, Debug, Deserialize, Serialize, JsonSchema)]
44-
#[serde(rename_all = "camelCase", tag = "mode")]
44+
#[serde(
45+
rename_all = "camelCase",
46+
rename_all_fields = "camelCase",
47+
tag = "mode"
48+
)]
4549
pub enum DynamicConnectionSettings {
4650
Named {
4751
connection_uris: ConnectionUris,

0 commit comments

Comments
 (0)