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