generated/1786

sha256 2bff53e0c3f0e935eeecc3790bcda7d4c6a890f314304d34022b13b17140baf5

Document

# c1
"base":
  &m1
  # c2
  "b0": -5
  # c3
  "b1": -2
  # c4
  "b2": 08
# c5
! "item":
  # c6
  <<:
    !!seq
    # c7
    -
      # c8
      "c0": 00
      # c9
      "c1": -9
    # c10
    - *m1
  # c11
  "d0": !!int 09

Corpus

grammarvalid, vouched for up to construct
tagsnone
featuresnode/alias node/anchor node/tag-non-specific node/tag-shorthand presentation/comment-above presentation/plain presentation/property-line presentation/quoted-double value/int value/mapping value/merge-key value/non-string-key value/sequence
meaning (yaml-1.2-core){"base":{"b0":-5,"b1":-2,"b2":8},"item":{"\u003c\u003c":[{"c0":0,"c1":-9},{"b0":-5,"b1":-2,"b2":8}],"d0":9}}

Answer groups

verdict split

go-yaml libfyaml perlref yamlstar

accept

yaml.v3

refuse by the loader

value split

go-yaml libfyaml

{"base":{"b0":-5,"b1":-2,"b2":8},"item":{"\u003c\u003c":[{"c0":0,"c1":-9},{"b0":-5,"b1":-2,"b2":8}],"d0":9}}

yamlstar

{"base":{"b0":-5,"b1":-2,"b2":8},"item":{"b0":-5,"b1":-2,"b2":8,"c0":0,"c1":-9,"d0":9}}

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml accepted accept ok n/i
yamlstar accepted accept different, explained n/i value: merge-key-applied: the loader applies the 1.1 merge key: it merges the mapping under "<<" into the mapping that holds it, where the core schema keeps "<<" as a plain key
yaml.v3 rejected, explained refuse by the loader rejected, explained refused int-leading-zero: yaml.v3 reads "09" and "099" as octal, fails, and resolves them to a float, so a !!int tag on them rejects the document; the core schema reads them as 9 and 99
value: int-leading-zero: yaml.v3 reads "09" and "099" as octal, fails, and resolves them to a float, so a !!int tag on them rejects the document; the core schema reads them as 9 and 99
yaml.v3: yaml: cannot decode !!float `09` as a !!int
go-yaml accepted accept ok same

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