sha256 5ac6519b7dcc0140e0f2395d5cc7eb8922443858675b326e8ad3d4340f7cc6fb
# c1
<<: # c2
!<tag:yaml.org,2002:map>
# c3
"a: b": -1 # c4
# c5
"a: b": |-
dup
# c6
!<tag:yaml.org,2002:str> "": NULL # c7
# c8
"a: b": NULL # c9
| grammar | valid, vouched for up to construct |
| encoding/bom | open from parse on: each parser's stance decides |
| key/duplicate | reject from parse on, 3.2.1.1: it is an error for two equal keys to appear in the same mapping node |
| features | break/crlf encoding/byte-order-mark node/tag-verbatim presentation/block-literal presentation/chomp-padded presentation/comment-above presentation/comment-inline presentation/plain presentation/property-line presentation/quoted-double value/int value/mapping value/merge-key value/non-string-key value/null value/string |
| meaning (none stated) | |
go-yaml yaml.v3
refuse by the loader
libfyaml
accept
perlref yamlstar
refuse by the parser
libfyaml
{"":null,"\u003c\u003c":{"a: b":"dup"},"a: b":null}
No source answered.
| parser | verdict | value | round trip | reason | message |
|---|---|---|---|---|---|
| perlref | rejected, explained refuse by the parser | n/i | n/i | bom-before-content: the parser takes a byte order mark before "---", a directive, a space or a break, and rejects one right before content or a comment, where [202] l-document-prefix takes it: "\ufeffa: 1" rejects the document | |
| libfyaml | accepted accept | not scored | n/i | ||
| yamlstar | rejected, explained refuse by the parser | not scored | n/i | bom-before-content: the reference parser takes a byte order mark before "---", a directive, a space or a break, and rejects one right before content or a comment, where [202] l-document-prefix takes it: "\ufeffa: 1" rejects the document | Error: parse: Parser finished before end of input |
| yaml.v3 | rejected, settled refuse by the loader | not scored | refused | key/duplicate: 3.2.1.1: it is an error for two equal keys to appear in the same mapping node | yaml.v3: yaml: unmarshal errors: |
| go-yaml | rejected, settled refuse by the loader | not scored | refused | key/duplicate: 3.2.1.1: it is an error for two equal keys to appear in the same mapping node | [7:7] mapping key "a: b" already defined at [5:7] |
Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.