Premium content - subscription required

#77: Validating API Parameters Part 2

Published December 24, 2018 5m 21s

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.

Ready to Learn More?

Subscribe to get access to all episodes and exclusive content.

Subscribe Now