8000 `apply_merge` doesn't merge recursively · Issue #362 · dtolnay/serde-yaml · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 25, 2024. It is now read-only.
This repository was archived by the owner on Mar 25, 2024. It is now read-only.
apply_merge doesn't merge recursively #362
Open
@victordidenko

Description

@victordidenko
let yaml_string = "\
a: &a
  a: a
b: &b
  <<: *a
c:
  - <<: *a
  - <<: *b
";
let mut yaml: serde_yaml::Value = serde_yaml::from_str(yaml_string).unwrap();
yaml.apply_merge().unwrap();
println!("{}", serde_yaml::to_string(&yaml).unwrap());

outputs

a:
  a: a
b:
  a: a
c:
- a: a
- <<:
    a: a

while it should be

a:
  a: a
b:
  a: a
c:
- a: a
- a: a

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

      0