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

Quoted keys are read as empty strings #8

Open
awvwgk opened this issue Apr 7, 2020 · 0 comments
Open

Quoted keys are read as empty strings #8

awvwgk opened this issue Apr 7, 2020 · 0 comments

Comments

@awvwgk
Copy link
Member

awvwgk commented Apr 7, 2020

The HSD specification does not really specify which characters are valid for properties or methods. To figure out if spaces are allowed in keys I used the TOML syntax of escaping keys, so quoting them. I did expect an error, of course, but got an empty string.

The input

"Quoted" = 0

yields the following dict

{'': 0}

which is in turn serialized as invalid HSD

 = 0
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