You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to create a config property which is optional without having to provide a default value? Thinking something like the below which can be retrieved from the Config object as a Kotlin nullable variable. Have the case where a config value is either defined or not, there would be no default value.
object AppSpec : ConfigSpec() {
val host by required("0.0.0.0")
val resourcePath by optional<String>() // no default value
}
Then when retrieved something like
// as nullable varval resourcePath :String?= config[AppSpec.resourcePath]
(Great library by the way)
The text was updated successfully, but these errors were encountered:
Is it possible to create a config property which is optional without having to provide a default value? Thinking something like the below which can be retrieved from the Config object as a Kotlin nullable variable. Have the case where a config value is either defined or not, there would be no default value.
Then when retrieved something like
(Great library by the way)
The text was updated successfully, but these errors were encountered: