4 ms·
This seems interesting. I've been trying Goal[0] to validate API data at the controller edge, which uses changesets itself. [0] https://hexdocs.pm/goal/Goal.h
by conradfr 3y ago
This seems interesting.
I've been trying Goal[0] to validate API data at the controller edge, which uses changesets itself.
[0] https://hexdocs.pm/goal/Goal.html https://hexdocs.pm/goal/Goal.html
- ch4s3 3y agoThat looks nice, but not a lot better than just embedded schemas. If it had more to offer for validating dates, I'd be interested.
- conradfr 3y agoMaybe suggest it in the Elixir forum thread https://elixirforum.com/t/goal-a-parameter-validation-library-based-on-ecto/50735/10 https://elixirforum.com/t/goal-a-parameter-validation-librar...
- ch4s3 3y agoYeah, I could do that but I know how much of a tar-pit it really is so I'd be hesitant to inflict that on anyone else :)