All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.wisp.feature.FeatureFlagValidation.kt Maven / Gradle / Ivy

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