yaml icon indicating copy to clipboard operation
yaml copied to clipboard

Add YAMLToJSONCustom to accept custom unmarshal func

Open mrnugget opened this issue 5 years ago • 2 comments

We want to use YAMLToJSON with yaml.v3 and this is the most minimal change that allows us to use yaml.v3 without breaking the interface of the rest of the library.

Why v3? Because v3 changed how it treats boolean values:

YAML 1.1 bools (yes/no, on/off) are supported as long as they are being decoded into a typed bool value. Otherwise they behave as a string. Booleans in YAML 1.2 are true/false only. (https://github.com/go-yaml/yaml/blob/v3/README.md#compatibility)

mrnugget avatar Jul 14 '20 13:07 mrnugget

@ghodss ping?

keegancsmith avatar Apr 20 '22 19:04 keegancsmith

@bradfitz sorry for the ping, but it seems like you have recent activity in this repo.

keegancsmith avatar May 04 '22 19:05 keegancsmith