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

YAMLish parse bug when no value present #35

Open
paulprocacci opened this issue Feb 13, 2022 · 1 comment
Open

YAMLish parse bug when no value present #35

paulprocacci opened this issue Feb 13, 2022 · 1 comment

Comments

@paulprocacci
Copy link

paulprocacci commented Feb 13, 2022

Edit: I just saw you're TODO. Sorry about that. I'm going to leave this here because it is indeed a bug.

some:
user:
    - username

Given the above example, YAMLish parses the above as:

some => {user => [username]}

Python's YAML module parses it as:

'some': None, 'user': ['username']

Given the indenting here, I suspect the YAMLish parser has gotten this wrong.
In fact, the specification says it's wrong:

https://yaml.org/spec/1.2.2/#22-structures

Section: 2.21 Example

@FCO
Copy link

FCO commented May 27, 2022

And:

bla:
ble:

Is not parsed:
image

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

2 participants