Someone is getting this issue when trying to disab...
# getting-started
j
Someone is getting this issue when trying to disable explicit api?
Copy code
kotlin {
  explicitApi = ExplicitApiMode.Disabled
}
Error:
Copy code
Unknown value for parameter -Xexplicit-api: 'disabled'. Value should be one of {disable, strict, warning}
The enum class:
Copy code
enum class ExplicitApiMode(private val cliOption: String) {
    Strict("strict"),
    Warning("warning"),
    Disabled("disabled"); // this should be renamed to disable and/or in another place have to check for disabled instead of disable

    fun toCompilerArg() = "-Xexplicit-api=$cliOption"
}
h
Just create an issue. BTW where did you found this code? https://github.com/JetBrains/kotlin/blob/master/compiler/util/src/org/jetbrains/kotlin/config/ExplicitApiMode.kt is correct
disable
j
For some reason there is a mess there
I am going to open a youtrack issue
h
Perfect!