pyhocon icon indicating copy to clipboard operation
pyhocon copied to clipboard

Q: overwrite dict/list instead of merge?

Open Blizzke opened this issue 6 years ago • 1 comments

Is it possible to overwrite a dict/list instead of merging? I have a situation where a base configuration sometimes defines a dict that I won't need "higher up", but things always seem to get merged.

Blizzke avatar Mar 27 '19 13:03 Blizzke

Hocon is designed to merge objects instead of overwriting it. As a work around, you can set it to null to clear default values, as suggested in the Specs

AutumnSun1996 avatar Sep 20 '19 02:09 AutumnSun1996