generated/246

sha256 fa570268db452fedcb2adb7dfb0a7851022b8f91d798402b599e7b3350818528

Document

-
    &a2
    !<tag:yaml.org,2002:merge> <<:
        -
            '': -2
        -
            '': 00
    '': &a1 TRUE
    '+0b11': *a1
-
    <<:
        !<tag:yaml.org,2002:seq>
        - *a2
        - *a2
    ! '  ':
        -
            &a3 <<: *a2
            ! 'a: b: c': null
        - null
        - !<tag:yaml.org,2002:bool> TRUE
- FALSE
-
    - &a4 |-
        a: b


    - -4.92e-339
    - 0846

Corpus

grammarvalid, vouched for up to construct
representation/float-out-of-rangeopen from construct on: each parser's stance decides
featuresbreak/crlf node/alias node/anchor node/tag-non-specific node/tag-verbatim presentation/block-literal presentation/chomp-padded presentation/plain presentation/property-line presentation/quoted-single value/big-float value/bool value/int value/mapping value/merge-key value/non-string-key value/null value/sequence value/string
meaning (yaml-1.2-core)[{"":true,"+0b11":true},{" ":[{"\u003c\u003c":{"":true,"+0b11":true},"a: b: c":null},null,true],"\u003c\u003c":[{"":true,"+0b11":true},{"":true,"+0b11":true}]},false,["a: b",-4.92e-339,846]]

Answer groups

verdict split

go-yaml libfyaml perlref yaml.v3

accept

yamlstar

refuse by the loader

value split

go-yaml

[{"":true,"+0b11":true},{"  ":[{"\u003c\u003c":{"":true,"+0b11":true},"a: b: c":null},null,true],"\u003c\u003c":[{"":true,"+0b11":true},{"":true,"+0b11":true}]},false,["a: b",-0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000492,846]]

libfyaml

[{"":true,"+0b11":true,"\u003c\u003c":[{"":-2},{"":0}]},{"  ":[{"\u003c\u003c":{"":-2},"a: b: c":null},null,true],"\u003c\u003c":[{"":-2},{"":-2}]},false,["a: b","-4.92e-339",846]]

yaml.v3

[{"":true,"+0b11":true},{"":true,"  ":[{"":true,"+0b11":true,"a: b: c":null},null,true],"+0b11":true},false,["a: b",0,846]]

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml accepted accept different, explained n/i value: float-past-double-as-text: the Python binding returns a float past a double's range as a string, "-9.948e-328"
yamlstar rejected, explained refuse by the loader rejected, explained n/i tag-without-constructor: the loader builds values for the core schema's tags only, and rejects any other tag, local or global: "!foo", "!!merge", "!!timestamp", "!!binary"
value: tag-without-constructor: the loader builds values for the core schema's tags only, and rejects any other tag, local or global: "!foo", "!!merge", "!!timestamp", "!!binary"
Error: Unknown tag: tag:yaml.org,2002:merge
yaml.v3 accepted accept different, explained different
document 0

written

- "": true
  "+0b11": true
- "": true
  '  ':
    - "": true
      "+0b11": true
      'a: b: c': null
    - null
    - true
  "+0b11": true
- false
- - 'a: b'
  - -0
  - 846

read back

[{"":true,"+0b11":true},{"":true,"  ":[{"":true,"+0b11":true,"a: b: c":null},null,true],"+0b11":true},false,["a: b",0,846]]
value: float-past-float64: a float too small for a float64 decodes as 0, and one too large is left a string, because yaml.v3 does not resolve it to a float: 9.999e+442 comes back as "9.999e+442"
go-yaml accepted accept ok same

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