Add flag to generate validator class.