clovyr / aeson-yaml

Encode any Aeson (JSON) value as YAML (in pure Haskell)
https://hackage.haskell.org/package/aeson-yaml
BSD 3-Clause "New" or "Revised" License
12 stars 7 forks source link

Ensure mapping values are quoted when they contain a `: ` separtor #15

Open TristanCacqueray opened 3 years ago

TristanCacqueray commented 3 years ago

This change prevents issue when the encoded yaml is invalid:

This object: { key = "value: value" } Is encoded as: key: value: value Instead of: key: "value: value"

Fixes: https://github.com/clovyr/aeson-yaml/issues/12