ktoml icon indicating copy to clipboard operation
ktoml copied to clipboard

According to the TOML specification string values

Open kamiyaHideki opened this issue 1 year ago • 4 comments

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

kamiyaHideki avatar Feb 18 '24 19:02 kamiyaHideki

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

@MakS1mKa228

orchestr7 avatar Feb 21 '24 09:02 orchestr7

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


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

kamiyaHideki avatar Feb 21 '24 09:02 kamiyaHideki

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...

orchestr7 avatar Feb 21 '24 09:02 orchestr7

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?

kamiyaHideki avatar Feb 21 '24 09:02 kamiyaHideki