Subscribe for only $15 to access all of our content

#77: Validating API Parameters Part 2

In episode 76 we saw one way of validating our API request parameters with Ecto changesets. While using schemaless Ecto changesets in this way is a great way to provide validation, I wanted to take a look at another way of doing this, using the Params package. Params is a simple wrapper around Ecto.Schema that helps you reduce a lot of the boilerplate of defining Ecto schema’s and changesets.

Join to Subscribe

More Episodes

Alchemist's Edition

#93: Ecto.Multi

In this episode we’ll explore Ecto.Multi in order to compose database transactions in Elixir.

Watch episode

#92: Introduction to Testing

Testing is an essential part of software development. In this episode we’ll get an introduction to testing in Elixir using the ExUnit test framework.

Watch episode

#91: Filtering Parameters in Phoenix

Often you’ll have sensitive information that you don’t want to show up logs. In this episode we’ll see how to configure Phoenix to specify what parameters you want filtered in your logs.

Watch episode