ryaml icon indicating copy to clipboard operation
ryaml copied to clipboard

It appears that y/n and other booleans is not supported.

Open jonathan-s opened this issue 1 year ago • 1 comments

If you try out the values specified here > https://yaml.org/type/bool.html It won't work as expected, it will not create a dictionary with a boolean, instead it will create dictionary with a string which is not what we expect in this case.

Tracking this here > https://github.com/dtolnay/serde-yaml/issues/379

jonathan-s avatar Jul 05 '23 10:07 jonathan-s

I just learned that version 1.1 of the yaml spec has one set of accepted booleans whereas version 1.2 of the yaml spec has smaller set of accepted booleans. So the resolution to this should be to update the readme and make clear that this package only supports the 1.2 version of the yaml spec.

jonathan-s avatar Jul 05 '23 15:07 jonathan-s