# Reuse required field across schemas

**URL:** https://discourse.dry-rb.org/t/reuse-required-field-across-schemas/664
**Category:** dry-validation
**Created:** [December 5, 2018, 11:19am UTC](https://discourse.dry-rb.org/t/reuse-required-field-across-schemas/664 "2018-12-05T11:19:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nicolas-besnard](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/nicolas-besnard/32/323_2.png) [@nicolas-besnard](https://discourse.dry-rb.org/u/nicolas-besnard)
#### Post date: [December 5, 2018, 11:19am UTC](https://discourse.dry-rb.org/t/reuse-required-field-across-schemas/664/1 "2018-12-05T11:19:58Z")

</div>

Hi!

I’ve a schema with a really specific line:

`required(:phone_number, Types::StringWithoutSpaces).filled(:str?, :phone_number?)`

I’d like to be able to reuse this across different schema (for example in `SignUpSchema` and `SignInSchema`), without the need to copy / paste the `required` line.

---

<div class="post-metadata">

### Author: ![nicolas-besnard](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/nicolas-besnard/32/323_2.png) [@nicolas-besnard](https://discourse.dry-rb.org/u/nicolas-besnard)
#### Post date: [December 19, 2018, 2:44pm UTC](https://discourse.dry-rb.org/t/reuse-required-field-across-schemas/664/2 "2018-12-19T14:44:34Z")

</div>

Found my answer 🙂 I think something is missing in the documentation. I’ve created a PR to fix that: [https://github.com/dry-rb/dry-rb.org/pull/271](https://github.com/dry-rb/dry-rb.org/pull/271)
