JuliaData / YAML.jl

Parse yer YAMLs
Other
128 stars 45 forks source link

Should warn when processing a higher minor version YAML file #146

Open Paalon opened 2 months ago

Paalon commented 2 months ago

According to https://yaml.org/spec/1.2.2/, 6.8.1,

Documents with a “YAML” directive specifying a higher minor version (e.g. “%YAML 1.3”) should be processed with an appropriate warning.

But does not warn.

julia> YAML.load("""%YAML 1.3\n---\nhello: world""")
Dict{Any, Any} with 1 entry:
  "hello" => "world"
kescobo commented 2 months ago

Related to #133