You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Serializable
data class Integers(
val s: Short,
val bool: Bool,
)
@Serializable
data class Bool(val a: Boolean)
@Test
fun positiveParsing() {
val test = """
s = 5
bool = true
""".trimMargin()
val decoded = Toml.decodeFromString<Integers>(test)
}
Leads to the invalid error: Unknown key received: s
Unknown key received: s in scope <rootNode>. Switch the configuration option: 'TomlConfig.ignoreUnknownNames' to true if you would like to skip unknown keys
com.akuleshov7.ktoml.exceptions.UnknownNameException: Unknown key received: <s> in scope <rootNode>. Switch the configuration option: 'TomlConfig.ignoreUnknownNames' to true if you would like to skip unknown keys
We definitely should fail on this, but this particular error is incorrect: we should point on missing fields from bool table
The text was updated successfully, but these errors were encountered:
Leads to the invalid error: Unknown key received: s
We definitely should fail on this, but this particular error is incorrect: we should point on missing fields from
bool
tableThe text was updated successfully, but these errors were encountered: