Implemented conditional validators (see #2406)
Merge pull request #2808 from drenty/conditional-validator

Implemented conditional validators (see #2406)