sha256 ad929ef58ce6b7a4d496aef571387f241f54bf136014c0ab4c72676879549a82
%YAML 1.1
---
&a1 null # c1
---
"190:20:30": # c2
- null # c3
- TRUE # c4
"? a": -0.009350761771202087 # c5
!<tag:yaml.org,2002:bool> FALSE: !<tag:yaml.org,2002:set> &a1 {} # c6
*a1 : |-
aliased
---
!<tag:yaml.org,2002:int> 18 # c7
| grammar | valid, vouched for up to construct |
| tags | none |
| features | node/alias node/anchor node/tag-verbatim presentation/block-literal presentation/comment-inline presentation/document-marker presentation/flow-collection presentation/multi-document presentation/plain presentation/quoted-double presentation/tag-before-anchor presentation/yaml-directive value/bool value/empty-collection value/float value/int value/mapping value/non-string-key value/null value/sequence value/string |
| meaning (none stated) | |
go-yaml yaml.v3
refuse by the loader
libfyaml
accept, then the loader refuses past parse
perlref yamlstar
accept
yamlstar
null
{"190:20:30":[null,true],"? a":-0.009350761771202087,"false":{},"{}":"aliased"}
18
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: 'mapping' | |
| yamlstar | accepted accept | not scored | n/i | ||
| yaml.v3 | rejected, explained refuse by the loader | not scored | refused | collection-key: yaml.v3 decodes a mapping into a Go map, and a Go map cannot take a sequence or a mapping as a key: "? [1, 2]" rejects the document | yaml.v3: yaml: invalid map key: map[string]interface {}{} |
| go-yaml | rejected, explained refuse by the loader | not scored | refused | json-cannot-write: codec.ToJSON rejects a value JSON cannot hold: .inf, .nan, a collection as a key; the corpus tags some of these documents json/not-representable and leaves others untagged | [10:1] a mapping cannot be a key in a Go map |
Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.