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

According to the TOML specification string values #259

Open
kamiyaHideki opened this issue Feb 18, 2024 · 4 comments
Open

According to the TOML specification string values #259

kamiyaHideki opened this issue Feb 18, 2024 · 4 comments

Comments

@kamiyaHideki
Copy link

Line 10: According to the TOML specification string values (even Enums) should be wrapped (start and end) with quotes (""), but the following value was not: <{ name = "user">.

image

@orchestr7
Copy link
Owner

orchestr7 commented Feb 21, 2024

Is options a valid argument?
What structure did you want to implement with that [ {} ] ?

@MakS1mKa228

@kamiyaHideki
Copy link
Author

kamiyaHideki commented Feb 21, 2024

data class Command(val name:String, val description: String, val options: List<Option>? = null)


data class Option(val name:String, val description: String)

@orchestr7
Copy link
Owner

orchestr7 commented Feb 21, 2024

List<Option>

data class Option(val name:String, val description: String)

In TOML spec it's https://toml.io/en/v1.0.0#array-of-tables ([[options]])

But it is not yet supported in Ktoml...

@kamiyaHideki
Copy link
Author

List<Option>

data class Option(val name:String, val description: String)

In TOML spec it's https://toml.io/en/v1.0.0#array-of-tables ([[options]])

But it is not yet supported in Ktoml...

And exactly... this is considered an array of tables. How soon will this functionality be implemented?

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