What's Changed
Breaking Changes
Previously, using the same map key did not result in a parsing error, but from now on, it will throw an error by default. If you want to keep the previous behavior, specify the parser.AllowDuplicateMapKey()
option.
Similarly, during Decode
, it will also throw an error by default. To keep the previous behavior, specify the yaml.AllowDuplicateMapKey()
option when decoding.
Also, yaml.DisallowDuplicateKey
option is deprecated.
Full Changelog: v1.13.10...v1.14.0