Skip to content

Commit be84201

Browse files
fix: Actually make feature flags use snake_case
The documentation already describes them as snake_case, so technically this is a bug fix.
1 parent c45980f commit be84201

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/config.rs

+1
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ pub type Set<T> = Vec<T>;
268268

269269
/// Opt-in features
270270
#[derive(Debug, Clone, Deserialize, PartialEq)]
271+
#[serde(rename_all = "snake_case")]
271272
pub enum FeatureFlag {
272273
/// If SSO should be activated. It requires idpId, idpUserName, idpUserId
273274
/// mapping

tests/environment/config.template.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ famedly:
3333
idp_id: @IDP_ID@
3434

3535
feature_flags:
36-
- SsoLogin
36+
- sso_login
3737
cache_path: ./test

0 commit comments

Comments
 (0)