# Conditionally run a schema

**URL:** <https://discourse.dry-rb.org/t/conditionally-run-a-schema/455>\
**Category:** Uncategorized\
**Created:** [January 25, 2018, 9:25am UTC](https://discourse.dry-rb.org/t/conditionally-run-a-schema/455 "2018-01-25T09:25:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![faucct](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/faucct/32/200_2.png) [@faucct](https://discourse.dry-rb.org/u/faucct)\
**Post date:** [January 25, 2018, 9:25am UTC](https://discourse.dry-rb.org/t/conditionally-run-a-schema/455/1 "2018-01-25T09:25:41Z")

</div>

Hello. The only way to do conditional validations I found in docs is defining high-level rules. This does not suit me well as you can’t specify if field is required or optional and it cannot distinguish nil’s from missing fields. Is there a way to specify another schema to run if some condition fulfils?
