BrianHicks / elm-csv

Decode CSV in the most boring way possible.

Home Page:https://package.elm-lang.org/packages/BrianHicks/elm-csv/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Decoder API to get available fields

gampleman opened this issue · comments

headers : Decoder (List String)

or some such.

The main use case I have is that the format of CSV my application accepts is dynamic based on the state of the application.

(i.e there are columns called 1_fx, 1_fy, 2_fx, 2_fy, 3_fx, 3_fy, ...)

Hence I would like to have an easy way to validate that there are no extra columns matching the template, since that would indicate that the user provided a CSV that didn't match the state of the application.