[[JBJCA-887] Input validation for code generator