sha256 ccbe22740059bd3a14406a48e3aef8b6b9616e9dc95c2f1b5108a0624bd20405
%YAML 1.2
---
"": &a1 ~ # c1
"0x_1F": &a2 {"\n": , *a1 : "aliased"} # c2
?
- "" # c3
: "dup" # c4
?
- "" # c5
: "dup2" # c6
| 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/alias node/anchor presentation/comment-inline presentation/document-marker presentation/explicit-key presentation/flow-collection presentation/flow-empty-value presentation/key-below-the-indicator presentation/plain presentation/quoted-double presentation/yaml-directive value/mapping value/non-string-key value/null value/string |
| meaning (none stated) | |
go-yaml
refuse by the loader
libfyaml
accept, then the loader refuses past parse
perlref yamlstar
accept
yaml.v3
refuse by the parser
yamlstar
{"":null,"0x_1F":{"\n":null,"null":"aliased"},"[\"\"]":"dup2"}
No source answered.
| parser | verdict | value | round trip | reason | message |
|---|---|---|---|---|---|
| perlref | accepted accept | n/i | n/i | ||
| libfyaml | accepted refuse by the loader | not scored | n/i | TypeError: unhashable type: 'sequence' | |
| yamlstar | accepted accept | not scored | n/i | ||
| yaml.v3 | rejected, settled refuse by the parser | 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: found incompatible YAML document |
| 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 | [6:7] a sequence cannot be a JSON key |
Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.