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

Issue with empty keys #373

Closed
Mr-S-Mirzoev opened this issue May 19, 2023 · 1 comment · Fixed by #374
Closed

Issue with empty keys #373

Mr-S-Mirzoev opened this issue May 19, 2023 · 1 comment · Fixed by #374

Comments

@Mr-S-Mirzoev
Copy link

Mr-S-Mirzoev commented May 19, 2023

Unlike in most other parsers, empty keys are not supported by ryml.

It is a strange case, but unfortunately, it appeared helpful in one of our company's endeavours.

%YAML 1.2
---
m:
  "": ""
image
biojppm added a commit that referenced this issue May 19, 2023
@biojppm
Copy link
Owner

biojppm commented May 19, 2023

Thanks for reporting.

For the record, empty keys are supported: all of {"": ""}, "": "" and {m: {"":""}} are parsed correctly (and notice the latter is the flow-style equivalent of your example) .

Instead, what you are seeing is a parse failure . Allow some time for investigating and fixing.

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

Successfully merging a pull request may close this issue.

2 participants