generated/1151

sha256 214ba14a2898dd00b1f037813c19bafe1ffe9506e0fe7f8486bc94545aab6db1

Document

---
!<!foo>
# c1
base: &m1 # c2
  # c3
  b0: -2 # c4
  # c5
  b1: -6 # c6
  # c7
  b2: -7 # c8
# c9
item: # c10
  # c11
  <<: !<!foo> # c12
    # c13
    - *m1 # c14
    # c15
    - # c16
      # c17
      c0: 4 # c18
      # c19
      !<tag:yaml.org,2002:str> c1: !<tag:yaml.org,2002:int> -1 # c20
  # c21
  d0: !<tag:yaml.org,2002:int> -8 # c22
  # c23
  d1: 0 # c24
  # c25
  b0: 99 # c26

Corpus

grammarvalid, vouched for up to construct
tagsnone
featuresnode/alias node/anchor node/tag-verbatim presentation/comment-above presentation/comment-inline presentation/document-marker presentation/plain value/int value/mapping value/merge-key value/non-string-key value/sequence
meaning (yaml-1.2-core){"base":{"b0":-2,"b1":-6,"b2":-7},"item":{"\u003c\u003c":[{"b0":-2,"b1":-6,"b2":-7},{"c0":4,"c1":-1}],"b0":99,"d0":-8,"d1":0}}

Answer groups

verdict

go-yaml libfyaml perlref yaml.v3 yamlstar

accept

value split

go-yaml libfyaml

{"base":{"b0":-2,"b1":-6,"b2":-7},"item":{"\u003c\u003c":[{"b0":-2,"b1":-6,"b2":-7},{"c0":4,"c1":-1}],"b0":99,"d0":-8,"d1":0}}

yaml.v3 yamlstar

{"base":{"b0":-2,"b1":-6,"b2":-7},"item":{"b0":99,"b1":-6,"b2":-7,"c0":4,"c1":-1,"d0":-8,"d1":0}}

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml accepted accept ok n/i
yamlstar accepted accept different, explained n/i value: merge-key-applied: the loader applies the 1.1 merge key: it merges the mapping under "<<" into the mapping that holds it, where the core schema keeps "<<" as a plain key
yaml.v3 accepted accept different, explained same value: merge-key-applied: yaml.v3 applies the 1.1 merge key: it merges the mapping under "<<" into the mapping that holds it, where the core schema keeps "<<" as a plain key
go-yaml accepted accept ok same

Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.