diff --git a/nym-api/nym-api-requests/src/models/described/type_translation.rs b/nym-api/nym-api-requests/src/models/described/type_translation.rs index 37653a2d14..2cbc660aa2 100644 --- a/nym-api/nym-api-requests/src/models/described/type_translation.rs +++ b/nym-api/nym-api-requests/src/models/described/type_translation.rs @@ -296,6 +296,7 @@ fn translate_digests( ToSchema, Ord, )] +#[serde(rename_all = "snake_case")] #[strum(serialize_all = "lowercase")] #[non_exhaustive] pub enum LPKEM { @@ -319,6 +320,7 @@ pub enum LPKEM { ToSchema, Ord, )] +#[serde(rename_all = "snake_case")] #[strum(serialize_all = "lowercase")] #[non_exhaustive] pub enum LPHashFunction { @@ -343,6 +345,7 @@ pub enum LPHashFunction { EnumString, ToSchema, )] +#[serde(rename_all = "snake_case")] #[strum(serialize_all = "lowercase")] #[non_exhaustive] pub enum LPSignatureScheme { diff --git a/nym-node/nym-node-requests/src/api/v1/lewes_protocol/models.rs b/nym-node/nym-node-requests/src/api/v1/lewes_protocol/models.rs index fe1ea68bd5..9c8104e494 100644 --- a/nym-node/nym-node-requests/src/api/v1/lewes_protocol/models.rs +++ b/nym-node/nym-node-requests/src/api/v1/lewes_protocol/models.rs @@ -71,6 +71,7 @@ impl LewesProtocol { EnumString, Ord, )] +#[serde(rename_all = "snake_case")] #[strum(serialize_all = "lowercase")] #[cfg_attr(feature = "openapi", derive(utoipa::ToSchema))] pub enum LPKEM { @@ -112,6 +113,7 @@ impl From for LPKEM { EnumIter, Ord, )] +#[serde(rename_all = "snake_case")] #[strum(serialize_all = "lowercase")] #[cfg_attr(feature = "openapi", derive(utoipa::ToSchema))] pub enum LPHashFunction { @@ -158,6 +160,7 @@ impl From for LPHashFunction { EnumString, EnumIter, )] +#[serde(rename_all = "snake_case")] #[strum(serialize_all = "lowercase")] #[cfg_attr(feature = "openapi", derive(utoipa::ToSchema))] pub enum LPSignatureScheme {