Reuse required field across schemas


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.

Found my answer :slight_smile: I think something is missing in the documentation. I’ve created a PR to fix that: