FAIRmat-NFDI / nyaml

https://fairmat-nfdi.github.io/nyaml
https://pypi.org/project/nyaml/
Apache License 2.0
1 stars 0 forks source link

Support yaml 1.2 files #15

Open domna opened 8 months ago

domna commented 8 months ago

We currently use pyyaml, which only supports yaml 1.1 and it's in question if and when yaml 1.2 support will come, see https://github.com/yaml/pyyaml/issues/116.

Using yaml 1.1 is problematic and unintuitive in some cases, e.g., yes and no get converted to boolean which can be problematic for some cases, see https://github.com/FAIRmat-NFDI/nyaml/pull/12#pullrequestreview-1810719043 for an example.

We should see if there are better drop-in replacements for pyyaml which support yaml 1.2, too.

domna commented 8 months ago

Switchting to https://pypi.org/project/ruamel.yaml/ could be a solution