shape/key/a block scalar under an entry with no key

sha256 3c351899f8cc466ce3ac9040bee0b7e503ad6a77e96206fc3dc15a2d2c2363bc

Document

- : |1
   x

Corpus

grammarvalid, vouched for up to construct
key/not-a-stringopen from construct on: each parser's stance decides
featuresnone
meaning (yaml-1.2-core)[{"null":"x\n"}]

Answer groups

verdict split

go-yaml libfyaml perlref yamlstar

accept

yaml.v3

refuse by the parser

value

go-yaml libfyaml yamlstar

[{"null":"x\n"}]

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml accepted accept ok n/i
yamlstar accepted accept ok n/i
yaml.v3 rejected, explained refuse by the parser rejected, explained refused empty-implicit-key: yaml.v3 rejects a block mapping entry that starts with ':', which l-block-map-implicit-entry reads as an empty key: "a: 1\n: 2" rejects the document
value: empty-implicit-key: yaml.v3 rejects a block mapping entry that starts with ':', which l-block-map-implicit-entry reads as an empty key: "a: 1\n: 2" rejects the document
yaml.v3: yaml: did not find expected key
go-yaml accepted accept ok same

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