yaml / yaml-test-suite

Comprehensive, language independent Test Suite for YAML
MIT License
172 stars 58 forks source link

4ABK null value #133

Closed matajoh closed 2 months ago

matajoh commented 2 months ago

What is the rule governing why the out.yaml for 4ABK is:

# in.yaml
{
unquoted : "separate",
http://foo.com,
omitted value:,
}
# out.yaml
unquoted: "separate"
http://foo.com: null
omitted value: null

(note the null value for omitted value)

whereas most other places this value is emitted as an empty node, e.g. (from C2DT):

# in.yaml
{
"adjacent":value,
"readable": value,
"empty":
}
# out.yaml
"adjacent": value
"readable": value
"empty":

I've been trying to determine what is governing the changing of the empty node to a null in the case of 4ABK as per the spec and was hoping someone could point me in the right direction.

matajoh commented 2 months ago

Closing issue for now.