Make Validator::generate public