# How to normalize function params

**URL:** <https://forum.elixirforum.com/t/how-to-normalize-function-params/44091>\
**Category:** Questions\
**Tags:** elixirconf2021\
**Created:** [November 25, 2021, 12:25pm UTC](https://forum.elixirforum.com/t/how-to-normalize-function-params/44091 "2021-11-25T12:25:47Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![ityonemo](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ityonemo/32/11341_2.png) [@ityonemo](https://forum.elixirforum.com/u/ityonemo)\
**Post date:** [November 28, 2021, 11:34pm UTC](https://forum.elixirforum.com/t/how-to-normalize-function-params/44091/14 "2021-11-28T23:34:02Z")

</div>

if you want to use something more standards-compliant, I have this library which does compile-time generation of strictly validation functions from Jsonschemas:

> **[Exonerate — exonerate v1.2.1](https://exonerate.hexdocs.pm/Exonerate.html)**

It doesn’t normalize your parameters, though, so if you need a translation layer between things with different “names” (e.g. camelCase → snake\_case) you might have to cook up something on your own. We do this at work with a “Codec” module which I may do a webcast on sometime.

With Ecto, though, you can just peddle in strings and it figures out the pesky strings/atoms stuff for you.

---

_[View the full topic](https://forum.elixirforum.com/t/how-to-normalize-function-params/44091)._
