doc for Validator