-
Notifications
You must be signed in to change notification settings - Fork 614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HOCON: impossible to override NUMERIC value from ENV or properties #1439
Comments
Original HOCON library supports that (https://github.com/lightbend/config#optional-system-or-env-variable-overrides), so I thought it should be available out of the box... Turns out it isn't |
@sandwwraith Hey, is this still up for grabs? if yes any head up I need to know before starting? |
@ahmadshabib Yeah. Just follow guide https://github.com/Kotlin/kotlinx.serialization/blob/master/CONTRIBUTING.md#submitting-prs , everything should be self-explanatory. I think this feature does not require a configuration flag or public API change, so no design space here. |
any workarounds for this? |
Hi, |
Describe the bug
Library does not correctly resolve
NUMBER
(probablyBOOLEAN
too) types when they're set via ENV or properties(since it's all strings)To Reproduce
config.conf
MyConfig.kt
env:
MY_CONFIG_VALUE=1
parsing exception:
SerializationException: env variables required to be a NUMBER
Expected behavior
Config is correctly parsed
Environment
The text was updated successfully, but these errors were encountered: