Description
Is there a way to identify which row a field mapping error occurred for?
I need to display validation errors in my UI if a CSV is not parsable due to field-level errors.
My fallback solution would be to use Strings for every field in my CSV parsing model, as to be permissive, then to validate this object and convert it to a more correctly typed object if validation passes.
That said, it would be great to be able to define the desired types directly on the CSV model (LocalDate, various Enums, etc). If I do so however, I cannot currently catch conversion errors in such a way that both the column and row in error are identified.
Ideally all errors in a particular row would be caught in the first run too, as opposed to short-circuiting parsing of a row once the first field error is encountered. This may be current functionality, I'm not certain.
Thank you!