main.wisp.feature.FeatureFlagValidation.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wisp-feature Show documentation
Show all versions of wisp-feature Show documentation
a module containing feature flag helpers
The newest version!
package wisp.feature
object FeatureFlagValidation {
/**
* Validates the feature flags's hashing "key". Most implementation technically support arbitrary
* strings, but we still prefer to restrict valid input to prevent accidentally passing
* in the wrong value or potentially sensitive information.
*/
fun checkValidKey(feature: Feature, key: String) {
require(key.isNotEmpty()) { "Key to flag $feature must not be empty" }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy