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

Invalid conversion from Json array to TOML array #29

Closed
boooyu44 opened this issue Sep 15, 2020 · 1 comment
Closed

Invalid conversion from Json array to TOML array #29

boooyu44 opened this issue Sep 15, 2020 · 1 comment

Comments

@boooyu44
Copy link

boooyu44 commented Sep 15, 2020

Invalid conversion from Json array to TOML array

JSON Input file:

{
 "data": [1,1.7,3 ]
}

TOML output file:

data = [1, 1.7, 3]

https://www.toml-lint.com/

3 should be of type "Float".

Seems that toml doesn't support different data types within array. Problem is guessing what user meant with this statement and to which value it should be converted to. Reporting anyway. Great tool overall.

@dbohdan
Copy link
Member

dbohdan commented Sep 15, 2020

This is a restriction in TOML v0.4 (which is what remarshal supports). The restriction was relaxed in later versions through toml-lang/toml#665. The issue will be resolved with issue #19.

Great tool overall.

Thanks!

@dbohdan dbohdan closed this as completed Sep 15, 2020
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