-
Notifications
You must be signed in to change notification settings - Fork 557
Open
Labels
Description
Expected Behaviour
- Ability to disable generated aliases and anchors (AA) in
yaml.dump()
Use Case
- Tool for generating default
yamlconfig file for an application - Users of the generated config file should not need to know how AA work
Actual Behaviour
- No option to disable AA
Current Workaround
class NoAliasDumper(yaml.Dumper):
def ignore_aliases(self, data):
return True
yaml.dump(x, Dumper=NoAliasDumper)Potential Solution
- Add a flag to
yaml.dump()that switches the functionality ofignore_aliases()
Lucas-C, mikedougherty, mhthies, artemzdor, jdevera and 65 moreschoreZ, dgolja, jeffkpayne, maartenJacobs, adunlapaddepar and 8 more