Types
Decodes errors passed from rails formatted as
{ errors: {errorName: ["Error String"] } }.
This function takes a Dict that is a map of all the fields you need decoded. It should be formatted nest
Dict.fromList [ ( "school", School ) , ( "school.name", SchoolName ) , ( "school.address", SchoolAddress ) , ( "school.city", City ) , ( "school.state", State ) , ( "school.zip", Zip ) , ( "school.country", Country ) ]
ErrorList is a type alias for a list of fields to String, where
fieldis expected to be a type for matching errors to