generated/2458

sha256 15ba4b737cf30a156ff69bb208efd673b7b41e1018d8e744d5819ca452bc26a1

Document

---
# c1
! "base": &m1
 # c2
 "b0": -1
 # c3
 "b1": 0x4
# c4
"item":
 # c5
 <<: !<tag:yaml.org,2002:map>
  # c6
  "c0": 0x1
  # c7
  "c1": 0x1
 # c8
 "d0": 0x8
 # c9
 "b0": 0x63

Corpus

grammarvalid, vouched for up to construct
tagsnone
featuresbreak/crlf node/anchor node/tag-non-specific node/tag-verbatim presentation/comment-above presentation/document-marker presentation/number-hex presentation/plain presentation/quoted-double value/int value/mapping value/merge-key value/non-string-key
meaning (yaml-1.2-core){"base":{"b0":-1,"b1":4},"item":{"\u003c\u003c":{"c0":1,"c1":1},"b0":99,"d0":8}}

Answer groups

verdict

go-yaml libfyaml perlref yaml.v3 yamlstar

accept

value split

go-yaml libfyaml

{"base":{"b0":-1,"b1":4},"item":{"\u003c\u003c":{"c0":1,"c1":1},"b0":99,"d0":8}}

yaml.v3

{"base":{"b0":-1,"b1":4},"item":{"b0":99,"c0":1,"c1":1,"d0":8}}

yamlstar

{"base":{"b0":-1,"b1":"0x4"},"item":{"b0":"0x63","c0":"0x1","c1":"0x1","d0":"0x8"}}

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: int-non-decimal-as-string: the loader leaves an integer written 0x or 0o a string, where the core schema reads 0x1A as 26 and 0o17 as 15
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.