sha256 fe230fb8d82476f30d1c60513b9cc03c08f02bcd8a33501ed6ec197489a766f0
kept:
nested: 1
list:
- a
- b
also: |
literal
content
recursive: &x { self: *x }
| grammar | valid, vouched for up to construct |
| anchor/alias-recursive | accept from parse on, 3.2.1: an anchor identifies its node from where the node begins, so an alias within it resolves |
| anchor/cyclic-meaning | open from construct on: each parser's stance decides |
| features | none |
| meaning (yaml-1.2-core) | (cyclic: no JSON form) |
go-yaml yaml.v3 yamlstar
refuse by the loader
libfyaml
accept, then the loader refuses past parse
perlref
accept
No source answered.
No source answered.
| parser | verdict | value | round trip | reason | message |
|---|---|---|---|---|---|
| perlref | accepted accept | n/i | n/i | ||
| libfyaml | accepted refuse by the loader | unscored | n/i | value: the loader rejects the document past parse, where the verdict is given | ValueError: Failed to parse YAML/JSON |
| yamlstar | rejected, as declared refuse by the loader | rejected, as declared | n/i | anchor/cyclic-meaning: the loader knows an anchor only once its node ends, so an alias inside that node names nothing: "a: &x [ *x ]" rejects the document with "Unknown anchor: x" value: anchor/cyclic-meaning: the loader knows an anchor only once its node ends, so an alias inside that node names nothing: "a: &x [ *x ]" rejects the document with "Unknown anchor: x" |
Error: Unknown anchor: x |
| yaml.v3 | rejected, as declared refuse by the loader | rejected, as declared | refused | anchor/cyclic-meaning: yaml.v3 rejects an alias inside the node its anchor names, with "anchor 'x' value contains itself" value: anchor/cyclic-meaning: yaml.v3 rejects an alias inside the node its anchor names, with "anchor 'x' value contains itself" |
yaml.v3: yaml: anchor 'x' value contains itself |
| go-yaml | rejected, as declared refuse by the loader | rejected, as declared | refused | anchor/cyclic-meaning: go-yaml refuses this on purpose value: anchor/cyclic-meaning: go-yaml refuses this on purpose |
[9:24] a cycle cannot be written as JSON |
Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.