Closed Adzz closed 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
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