Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
joe2xyz opened this issue Dec 21, 2023 · 1 comment
Closed

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

joe2xyz opened this issue Dec 21, 2023 · 1 comment

Comments

@joe2xyz
Copy link

joe2xyz commented Dec 21, 2023

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

@martin-g
Copy link

I think you should report it at https://github.com/dtolnay/serde-yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants