Skip to content

Anchor/Alias crashs on accessing not overridden key/value #617

@hofbi

Description

@hofbi

My yaml file has the following structure

a_root: &root_anchor
  key1: value1
  key2: value2
b_child:
  <<: *root_anchor
  key2: value2_override

If I evaluate this file with yamllint.com or pyyaml this results into

a_root: 
  key1: value1
  key2: value2
b_child: 
  key1: value1
  key2: value2_override

But If I try to access the value of [b_child][key1] this result in a crash as key1 does not exit for b_child

This issue could be related to #312 and #110

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions