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

Empty keys cannot be decoded #404

Open
ffried opened this issue Dec 28, 2023 · 0 comments
Open

Empty keys cannot be decoded #404

ffried opened this issue Dec 28, 2023 · 0 comments

Comments

@ffried
Copy link

ffried commented Dec 28, 2023

I have the following YAML:

root:
  :
    - sub: value1
  other:
    - sub: value2

Which according to YAML Lint is valid.

But Yams fails to decode it with the following error:

2:3: error: parser: while parsing a block mapping in line 2, column 3
did not find expected key:
  :
  ^)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant