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
I currently have code that accumulates errors across rows, but reports only one error (for instance a missing field) per row. Is it somehow possible to list all missing fields when decoding a named record?
Below the current code for reference, as well as how it behaves:
Running it against the following sample csv, yields the message as below:
# persons.csv
name,age,yearsOfExperience
John Doe,,
Smith,20,4
# result
[Left "in named field \"age\": expected Int, got \"\" (not enough input)",Right (Person {name = "Smith", age = 20, yearsOfExperience = 4})]
Ideally, the message would include the missing ageand the missing yearsOfExperience fields. Is it possible to achieve it?
The text was updated successfully, but these errors were encountered:
I currently have code that accumulates errors across rows, but reports only one error (for instance a missing field) per row. Is it somehow possible to list all missing fields when decoding a named record?
Below the current code for reference, as well as how it behaves:
Running it against the following sample csv, yields the message as below:
Ideally, the message would include the missing
age
and the missingyearsOfExperience
fields. Is it possible to achieve it?The text was updated successfully, but these errors were encountered: