Switched from yup to swagger-model-validator along with swagger-type-generator