sha256 2803ff8f924000ddf109610724b81fbf50d3acc0ed89c68a5859b8f1a9b93898
%TAG !n-1! tag:yaml.org,2002:
---
!foo {&a1 <<: &a2 ['merged0': 0x3, '': 0x9], '': !n-1!null null}
| grammar | valid, vouched for up to construct |
| tags | none |
| features | break/crlf node/anchor node/tag-handle node/tag-local presentation/document-marker presentation/flow-collection presentation/flow-pair presentation/number-hex presentation/plain presentation/quoted-single presentation/tag-directive value/int value/mapping value/merge-key value/non-string-key value/null value/sequence |
| meaning (yaml-1.2-core) | {"":null,"\u003c\u003c":[{"merged0":3},{"":9}]} |
go-yaml libfyaml perlref yaml.v3 yamlstar
accept
go-yaml libfyaml
{"":null,"\u003c\u003c":[{"merged0":3},{"":9}]}yaml.v3
{"":null,"merged0":3}yamlstar
{"":null,"merged0":"0x3"}
No source answered.
| parser | verdict | value | round trip | reason | message |
|---|---|---|---|---|---|
| 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.