Skip to content

Commit 09c37a5

Browse files
committed
chore(stackable-operator): Remove strum until needed, set serde rename styles
1 parent e32221a commit 09c37a5

File tree

1 file changed

+5
-5
lines changed
  • crates/stackable-operator/src/commons/s3

1 file changed

+5
-5
lines changed

crates/stackable-operator/src/commons/s3/crd.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub struct S3ConnectionSpec {
7474
/// region name nearest to where the client application is running from.
7575
///
7676
/// This defaults to us-east-1, and can be ignored if not using AWS S3.
77-
#[serde(flatten)]
77+
#[serde(default)]
7878
pub region: AwsRegion,
7979

8080
/// Which access style to use.
@@ -107,8 +107,8 @@ pub enum S3AccessStyle {
107107
VirtualHosted,
108108
}
109109

110-
#[derive(strum::Display, Clone, Debug, Deserialize, Eq, JsonSchema, PartialEq, Serialize)]
111-
#[strum(serialize_all = "snake_case")]
110+
#[derive(Clone, Debug, Deserialize, Eq, JsonSchema, PartialEq, Serialize)]
111+
#[serde(rename_all = "camelCase")]
112112
pub enum AwsRegion {
113113
/// Defer region detection to an auto-discovery mechanism.
114114
Source(AwsRegionAutoDiscovery),
@@ -136,8 +136,8 @@ impl Default for AwsRegion {
136136
}
137137
}
138138

139-
#[derive(strum::Display, Clone, Debug, Deserialize, Eq, JsonSchema, PartialEq, Serialize)]
140-
#[strum(serialize_all = "kebab-case")]
139+
#[derive(Clone, Debug, Deserialize, Eq, JsonSchema, PartialEq, Serialize)]
140+
#[serde(rename_all = "PascalCase")]
141141
pub enum AwsRegionAutoDiscovery {
142142
/// AWS Instance Meta Data Service.
143143
///

0 commit comments

Comments
 (0)