generated/242

sha256 e31a79b73312554737686c075b9f39ca3b2746acd52983757486fd85d98842df

Document

%YAML 1.2
---
# c1
'base':
     &m1
     # c2
     'b0': 0
     # c3
     'b1': -8
# c4
'item':
     # c5
     &k1 <<: *m1
     # c6
     'b0': 99

Corpus

grammarvalid, vouched for up to construct
tagsnone
featuresnode/alias node/anchor presentation/comment-above presentation/document-marker presentation/plain presentation/property-line presentation/quoted-single presentation/yaml-directive value/int value/mapping value/merge-key value/non-string-key
meaning (yaml-1.2-core){"base":{"b0":0,"b1":-8},"item":{"\u003c\u003c":{"b0":0,"b1":-8},"b0":99}}

Answer groups

verdict split

go-yaml libfyaml perlref yamlstar

accept

yaml.v3

refuse by the parser

value split

go-yaml libfyaml

{"base":{"b0":0,"b1":-8},"item":{"\u003c\u003c":{"b0":0,"b1":-8},"b0":99}}

yamlstar

{"base":{"b0":0,"b1":-8},"item":{"b0":99,"b1":-8}}

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 rejected, explained refuse by the parser rejected, explained refused yaml-directive-1.1-only: yaml.v3 accepts a %YAML directive for version 1.1 only, so "%YAML 1.2" rejects the document
value: yaml-directive-1.1-only: yaml.v3 accepts a %YAML directive for version 1.1 only, so "%YAML 1.2" rejects the document
yaml.v3: yaml: found incompatible YAML document
go-yaml accepted accept ok same

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