YAML: dictionary with empty value

key:

is parsed as null -

%YAML 1.1
---
!!map {
    ? !!str "key"
    : !!null "null",
}

The correct answer is:

key: ""