-
Notifications
You must be signed in to change notification settings - Fork 618
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HOCON: parse strings into integers and booleans if possible (#1795)
HOCON suggests that parsers should apply certain automatic conversions, especially when reading integers/numbers or booleans from strings (https://github.com/lightbend/config/blob/main/HOCON.md#automatic-type-conversions). This is an attempt to resolve the most pressing issues. Fixes #1439 This PR changes parsing so that it now relies on the parsing capabilities for the Config class, and not on the obtained ConfigValues. This PR does not claim to cover all automatic conversions mentioned but is focused on parsing numbers and booleans from strings only. Co-authored-by: saibot <tobiaslieber@web.de>
- Loading branch information
1 parent
a33ef02
commit 77aa167
Showing
2 changed files
with
94 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters