Only run validator generator when needed (it triggers heavy reflection scanning)