Skip to content

Improve nomination data - category type validations #13

Description

@aitorres

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions