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

Failure to parse homogeneous arrays with strict_arrays enabled #10

Closed
oschwald opened this issue Jan 28, 2021 · 2 comments
Closed

Failure to parse homogeneous arrays with strict_arrays enabled #10

oschwald opened this issue Jan 28, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@oschwald
Copy link

When strict_arrays are enabled, parsing of some homogeneous arrays fails with unexpected type errors. For instance, parsing:

[test]
array = ["u", "u2"]

Fails with:

toml parse error at line EOF: expected value of type string, but found integer

Given that TOML 1.0 now supports heterogeneous arrays, it might make sense to remove strict_arrays altogether. However, this issue may point to a more general problem with the type detection.

@sysread sysread self-assigned this Feb 12, 2021
@sysread sysread added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels Feb 12, 2021
@sysread
Copy link
Owner

sysread commented Feb 12, 2021

Fixed in https://github.com/sysread/TOML-Tiny/releases/tag/v0.11

I may well remove that in a future version, but in the meantime, the bug is fixed.

@sysread sysread closed this as completed Feb 12, 2021
@oschwald
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants