Parse and update YAML configuration with diagnostics and bounded aliases.
Parse, diagnose and edit YAML configuration with yaml 2, preserving document comments when needed and controlling duplicate keys, schemas and alias expansion. Use the Document API for roundtrip edits rather than reconstructing commented files from plain objects.