Subscribe to access all episodes. View plans →

#77: Validating API Parameters Part 2

Published December 24, 2018

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.

© 2024 HEXMONSTER LLC