dtolnay/serde-yaml

Yaml with colon at the beginning of a value won't parse

Opened this issue · 0 comments

Dear Serde maintainers,

Thank you for the library. It's fantastic.

When I use serde_yaml::from_str, the following YAML won't work:

- a:
    b:
      c:
        - f: [:this_WILL_fail]
        - f: [':this_will_NOT_fail']
      e:
        - { g: :this_WILL_fail }
        - { g: ':this_will_NOT_fail' }

But It should. You can for example try to convert it by cat file.yml | remarshal -if yaml -of json and remarshal will convert it.

Thank you.

Joe

(first I posted this in serde-rs serde-rs/serde#2667 but I was asked to post it here)