-
Notifications
You must be signed in to change notification settings - Fork 214
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
Marshalling fails for nested arrays of tables #369
Comments
Thank you for the bug report! That's definitely wrong. |
For information, the BurntSushi library also fails with this error: I think nested arrays of table might only be expressed with inline tables in TOML (see toml-lang/toml#353 (comment)). |
The latest spec calls out
And that arrays can contain any other type including arrays. I don’t see why your example shouldn’t work. |
I wonder if your changes at f1ba638 fix this 🤔 |
My changes don't fix this. Since nested arrays of tables can only be represented as inline tables, we should add an inline tree representation in the tomlValueStringRepresentation method. I will try to make a PR for this. |
Describe the bug
Marshalling produces an error:
To Reproduce
Expected behavior
There is no error when loading TOML data, so marshalling should work.
Versions
Additional context
Unmarshalling works:
Output:
The text was updated successfully, but these errors were encountered: