There should be a switch to allow ignore unmaped fields in input data.
"parse to primitive data type with unmapped field" {
val expected =
PrimitiveTypes(0, 1, 2, 3.0f, 4.0, true, "hello")
val contents = readTestFile("/primitive-with-unmapped-field.csv").asSequence()
val grass = grass<PrimitiveTypes>() {
ignoreUnknownFields = true
}
val parsed = grass.harvest(contents)
val actual = parsed.first()
assertTrue { expected == actual }
}
There should be a switch to allow ignore unmaped fields in input data.
where
primitive-with-unmapped-field.csv
is@blackmo18 I already implemented the feature, but I am unable to push the branch for review due to insufficient permissions: