Adzz / data_schema

Declarative schemas for data transformations.
Apache License 2.0
85 stars 9 forks source link

Handles Errors A Little Better #21

Closed Adzz closed 2 years ago

Adzz commented 2 years ago

There is still room for iteration but this at least now returns a (possibly nested) error so you can see the path to the problematic key.

Previously we did this just for non null errors but this rolls it out for any cast fn that returns {:error, thing} | :error

We use a default error message if one isn't provided