We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Features are represented as a map in our configuration files, which means that the corresponding configuration object defined in application.conf does not overwrite the "base" definition found in reference.conf, as it would if it was a string or number, but is merged with it (see https://github.com/lightbend/config/blob/c17d58e09af11f9e2a9ddae2eccca18f5f0f01f6/HOCON.md#duplicate-keys-and-object-merging).
Features
application.conf
reference.conf
With the following configuration files:
reference.conf: features { initial_routing_sync = optional option_data_loss_protect = optional gossip_queries = optional gossip_queries_ex = optional var_onion_optin = optional } application.conf: features { option_data_loss_protect = mandatory var_onion_optin = optional payment_secret = optional basic_mpp = optional }
The final configuration, as read by the application, will be equivalent to:
features { initial_routing_sync = optional option_data_loss_protect = mandatory gossip_queries = optional gossip_queries_ex = optional var_onion_optin = optional payment_secret = optional basic_mpp = optional }
There are several potential fixes:
null
application,.conf
application.conf: features : null features { option_data_loss_protect = mandatory var_onion_optin = optional payment_secret = optional basic_mpp = optional }
The text was updated successfully, but these errors were encountered:
Fixed by #1435
Sorry, something went wrong.
No branches or pull requests
Features
are represented as a map in our configuration files, which means that the corresponding configuration object defined inapplication.conf
does not overwrite the "base" definition found inreference.conf
, as it would if it was a string or number, but is merged with it (see https://github.com/lightbend/config/blob/c17d58e09af11f9e2a9ddae2eccca18f5f0f01f6/HOCON.md#duplicate-keys-and-object-merging).With the following configuration files:
The final configuration, as read by the application, will be equivalent to:
There are several potential fixes:
reference.conf
file, so there's nothing to merge with.null
value could be inserted inapplication,.conf
to discard values defined inreference.conf
:Features
The text was updated successfully, but these errors were encountered: