-
Notifications
You must be signed in to change notification settings - Fork 1k
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 include support #1169
Hocon include support #1169
Conversation
ohh, shiny "needs review" auto label :) |
{ | ||
var json = JsonConvert.SerializeObject(source); | ||
var config = ParseString(json); | ||
return config; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This lets us create Hocon Configs from typed objects.
a convenience method only, but opens up for using objects as includes, or creating typed configuration support.
the failing test "ConfigurationSpec.CanCreateConfigFromSourceObject" is fixed by my other PR. |
If the tests are re-run, does it run on top of newly merged PR's ? |
@rogeralsing it runs exactly the code that you have in your PR - so anything that's in |
Added Hocon Include support Added Hocon Include substitution support Added more Hocon tests Changed includes from single quote to double quotes. (spec says single quote in the spec text, but all examples and code on JVM uses double quotes)
I updated my branch to include the racy Json config fix merged yesterday. everything pass now. |
Related to #1164
This allows us to use Hocon includes:
The 'some resource' can then be resolved by an optional resolver callback. so the resource could be a file on disk, an url, or whatever you want that could result in a new hocon sub config.
see inline comments for explanations of the code to help the review