PR #12 introduces a series of validations to make sure that a nomination creation request includes what is needed according to their associated category. A future improvement might be to improve such custom validator, in order to make it more readable and maintainable in the future, if new category types arise.
For example: map each category type to an object that includes an instruction for each nomination value (main nominee, aux nominee, extra) saying whether it's required, it's forbidden, or its optional (no bias).
PR #12 introduces a series of validations to make sure that a nomination creation request includes what is needed according to their associated category. A future improvement might be to improve such custom validator, in order to make it more readable and maintainable in the future, if new category types arise.
For example: map each category type to an object that includes an instruction for each nomination value (main nominee, aux nominee, extra) saying whether it's required, it's forbidden, or its optional (no bias).