Martin Nijboer·Feb 24, 2022Using Ecto changesets for JSON API request body validation.How to use Ecto.Changeset beyond the database context, and use it for API validation and translatable error messages as well
Martin Nijboer·Dec 6, 2021Using Elixir’s “with” statement.Elixir has many features to make code readable, maintainable, and correct. One of them is the with statement. Unfortunately, the with…
Martin Nijboer·Oct 18, 2021Deduplicating authentication and authorization tests in Elixir and Phoenix using macros.Writing the same tests over and over again is frustrating work. Yet that’s what happens when writing authentication and authorization…