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

#97: Schemaless Form Validations with Changesets

In this episode we’ll take an existing contact form and see how Ecto changesets can be used to perform schemaless form validations and display errors.

Watch episode
Alchemist's Edition

#96: Contact Form

In this episode we’ll build a contact form for an existing Elixir Phoenix application. When a user submits the form, an email will be sent using the Bamboo library.

Watch episode
Alchemist's Edition

#95: Phoenix LiveView Part 4

In part 4 of our Phoenix LiveView series we’ll use Phoenix Presence to track how many users are currently signed in to our application.

Watch episode