generated/1475

sha256 e49b64cb075544cde503fa75ea16743f7c2a45d79321643eec57ae18c6ba4e9d

Document

%TAG !TAG2! tag:yaml.org,2002:
---
{? 'base': &m1 {? 'b0': -3, ? 'b1': -2, ? 'b2': 01}, ? 'item': {? !TAG2!merge &k1 <<: *m1, ? 'd0': !TAG2!int -3, ? 'd1': !TAG2!int 09}}	# c1

Corpus

grammarvalid, vouched for up to construct
tagsnone
featuresnode/alias node/anchor node/tag-handle presentation/comment-inline presentation/document-marker presentation/explicit-key presentation/flow-collection presentation/plain presentation/quoted-single presentation/tab-separation presentation/tag-before-anchor presentation/tag-directive value/int value/mapping value/merge-key value/non-string-key
meaning (yaml-1.2-core){"base":{"b0":-3,"b1":-2,"b2":1},"item":{"b0":-3,"b1":-2,"b2":1,"d0":-3,"d1":9}}

Answer groups

verdict split

go-yaml libfyaml perlref

accept

yaml.v3 yamlstar

refuse by the loader

value split

go-yaml

{"base":{"b0":-3,"b1":-2,"b2":1},"item":{"b0":-3,"b1":-2,"b2":1,"d0":-3,"d1":9}}

libfyaml

{"base":{"b0":-3,"b1":-2,"b2":1},"item":{"\u003c\u003c":{"b0":-3,"b1":-2,"b2":1},"d0":-3,"d1":9}}

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml accepted accept different, explained n/i value: explicit-merge-not-applied: the Python binding does not apply the merge key, even under an explicit !!merge tag, and keeps "<<" as a plain key
yamlstar rejected, explained refuse by the loader rejected, explained n/i tag-without-constructor: the loader builds values for the core schema's tags only, and rejects any other tag, local or global: "!foo", "!!merge", "!!timestamp", "!!binary"
value: tag-without-constructor: the loader builds values for the core schema's tags only, and rejects any other tag, local or global: "!foo", "!!merge", "!!timestamp", "!!binary"
Error: Unknown tag: tag:yaml.org,2002:merge
yaml.v3 rejected, explained refuse by the loader rejected, explained refused int-leading-zero: yaml.v3 reads "09" and "099" as octal, fails, and resolves them to a float, so a !!int tag on them rejects the document; the core schema reads them as 9 and 99
value: int-leading-zero: yaml.v3 reads "09" and "099" as octal, fails, and resolves them to a float, so a !!int tag on them rejects the document; the core schema reads them as 9 and 99
yaml.v3: yaml: cannot decode !!float `09` as a !!int
go-yaml accepted accept ok same

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