I would like to know if it is possible to enable or disable a validation annotation on an attribute according to the controller\'s functions. As you can see, the inner class