Closed silverjam closed 2 years ago
FWIW this appears to be the output from yaml.safe_dump
when using the default_style
parameter in the PyYAML library in Python.
>>> import yaml
>>> d = {"foo": 7200}
>>> print(yaml.safe_dump(d, default_style="|"))
"foo": !!int |-
7200
I've published a fix in 0.9.12. Please file other issues if you notice anything else going wrong with this safe_dump
/default_style
format. This corner of YAML is tricky to get right.
I've published a fix in 0.9.12. Please file other issues if you notice anything else going wrong with this
safe_dump
/default_style
format. This corner of YAML is tricky to get right.
Wonderful, thank you!
In
serde_yaml
0.8 the following code is able to map from a!!int
tagged type to a Rustu32
:In serde_yaml 0.9 the following error occurs:
See gist here https://gist.github.com/silverjam/254c5b6ecd526726e17f89135710034e -- I've also tried other Rust datatypes like
i64
but to no avail.