orchestr7 / ktoml

Kotlin Multiplatform parser and compile-time serializer/deserializer for TOML format (Native, JS, JVM) based on KxS
https://akuleshov7.github.io/ktoml
MIT License
455 stars 25 forks source link

According to the TOML specification string values #259

Open kamiyaHideki opened 9 months ago

kamiyaHideki commented 9 months ago

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 commented 9 months ago

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

@MakS1mKa228

kamiyaHideki commented 9 months ago
data class Command(val name:String, val description: String, val options: List<Option>? = null)

data class Option(val name:String, val description: String)
orchestr7 commented 9 months ago

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 commented 9 months ago

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?