Allow to customize the code attribute of ValidationError raised by BaseConstraint.validate Description
Allow to customize the code attribute of ValidationError raised by BaseConstraint.validate Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). It is currently possible to customize the violation error message of a ValidationError raised by a constraint but not the code. I'd like to…
The task
It is currently possible to customize the violation_error_message of a ValidationError raised by a constraint but not the code. I'd like to add a new violation_error_message parameter to BaseConstraint to allow to easily add one. Currently, to achieve the same result, you have to subclass the constraint to tweak…
Part of Lego-X/Lego-RL-SWE-Bench-Verified.