I am using YAML as a configuration engine, and I need to use it in such as way that I can split the configurations in a hierarchical way, say I have a base.yaml which contains some default values and then a overridden.yaml file which overrides the base values:
base.yaml
value: base
overridden.yaml
!include base.yaml
value: overridden
In the end, if I load the overridden.yaml file, ideally I want to see the value set as "overridden".
I can use this trick to include another YAML file, but still one piece is missing is it does not allow me to define more entries right after the global include with this error:
yaml.scanner.ScannerError: mapping values are not allowed here
I am using PyYAML to load the YAML files.