troccoli / lva

This is a project to help the London Volleyball Association (LVA) Referee Administrators manage referees' appointments
MIT License
0 stars 0 forks source link

Use the new `sometimes_without` validation rule for various APIs #141

Open troccoli opened 4 years ago

troccoli commented 4 years ago

Now that we have the sometimes_without rule we can use it in various APIs to make sure that "competing" parameters are not used at the same time.

For example, with the /api/v1/fixtures endpoint it doesn't make sense to have both a season and competition parameters.

Blocked by #140