Skip to content

Commit

Permalink
fix(cardinality): Fix json capitalization for cardinality config (#2979)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde authored Jan 22, 2024
1 parent 4939bf9 commit c0b970e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions relay-cardinality/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use crate::SlidingWindow;

/// A cardinality limit.
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct CardinalityLimit {
/// Unique identifier of the cardinality limit.
pub id: String,
Expand All @@ -23,6 +24,7 @@ pub struct CardinalityLimit {

/// A scope to restrict the [`CardinalityLimit`] to.
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Deserialize, Serialize)]
#[serde(rename_all = "lowercase")]
pub enum CardinalityScope {
/// The organization that this project belongs to.
///
Expand Down

0 comments on commit c0b970e

Please sign in to comment.