# Validating constructor pattern?

**URL:** <https://forum.elixirforum.com/t/validating-constructor-pattern/5146>\
**Category:** Questions\
**Tags:** ecto, structs, validation\
**Created:** [May 19, 2017, 10:55am UTC](https://forum.elixirforum.com/t/validating-constructor-pattern/5146 "2017-05-19T10:55:04Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ashneyderman](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ashneyderman/32/1884_2.png) [@ashneyderman](https://forum.elixirforum.com/u/ashneyderman)\
**Post date:** [May 19, 2017, 3:00pm UTC](https://forum.elixirforum.com/t/validating-constructor-pattern/5146/4 "2017-05-19T15:00:18Z")

</div>

you can use straight maps with Changeset. If you need to validate you can always validate a map and create struct from the map afterwards.

---

_[View the full topic](https://forum.elixirforum.com/t/validating-constructor-pattern/5146)._
