go-yaml icon indicating copy to clipboard operation
go-yaml copied to clipboard

Properly handle nil slices (and other nils)

Open johnnybubonic opened this issue 2 years ago • 1 comments

In https://github.com/goccy/go-yaml/issues/80, it is proposed (and was implemented) that e.g. nil slices (and, I presume, other nil references) use the syntax e.g. [].

This breaks YAML spec, for both 1.1 and 1.2. It must be null.

johnnybubonic avatar Jan 25 '23 13:01 johnnybubonic

Bumping this. This breaks YAML specification.

johnnybubonic avatar Sep 19 '23 09:09 johnnybubonic