auto model validation compatibility for controller generators