filter

Extending Validators

You can add situation-specific rules within a child validator.
You can also use extend to mark fields as required or forbidden that originally
were not. Default value and custom error message extension is also supported.