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
When one datasource has a value defined in one style of parameter names and another in another it leads to values being "erased" from the final config.
E.g.
data classConfig(
valmySection:MySection
) {
data classMySection(valtest:Int, valsubSection:SubSection) {
data classSubSection(valsomeValue:Int)
}
I looked in the debugger and it seems that "mySection" and "my-section" are different paths when resolving config at the cascading stage, so "mySection.test" is undefined and that value overrides "my-section.test" that is set.
I don't know if it makes sense but if parameter mapping was applied already when preprocessing the configs so that the map has normalized names, and not at the point of reading from the map, it would prevent this kind of issue.
At least it might be worth noting in the docs that this is not allowed, because it's very hard to debug when it happens.
The text was updated successfully, but these errors were encountered:
When one datasource has a value defined in one style of parameter names and another in another it leads to values being "erased" from the final config.
E.g.
With a file config like this
And an environment variable like this
Will result in
mySection.test
not being set.I looked in the debugger and it seems that "mySection" and "my-section" are different paths when resolving config at the cascading stage, so "mySection.test" is undefined and that value overrides "my-section.test" that is set.
I don't know if it makes sense but if parameter mapping was applied already when preprocessing the configs so that the map has normalized names, and not at the point of reading from the map, it would prevent this kind of issue.
At least it might be worth noting in the docs that this is not allowed, because it's very hard to debug when it happens.
The text was updated successfully, but these errors were encountered: