- a lot of times, we need to handle inputs from the outside world (maybe a form, response from an API, POST body, etc).
- validating those inputs ends up being long and messy if else conditions in our Controller code.
- this talk details a beautiful way we can use ecto for this validation using the changeset patterns.
Â