GEWIS / sudosos-backend

SudoSOS is a Node.js-based Bar and POS system made for study association GEWIS.
https://sudosos.gewis.nl
GNU Affero General Public License v3.0
4 stars 3 forks source link

Migrate all request validators to custom `swaggar-model-async-validator` #116

Open JustSamuel opened 8 months ago

JustSamuel commented 8 months ago

I created a fork of the swagger-model-validator package that we use. This fork (bumps all the dependencies) and allows for custom validator functions to be async. This means we can replace my over complicated custom validation logic with something that is way clearer.

Migration should not be to hard. Here is how to add custom validators. So we just have to rewrite, and mostly remove code.

Progress