swagger-express-middleware icon indicating copy to clipboard operation
swagger-express-middleware copied to clipboard

schemaValidator.validate is not a function error

Open mdaehn opened this issue 5 years ago • 1 comments

It seems the validate method is not defined on the JsonSchema helper and blows up at this line. https://github.com/APIDevTools/swagger-express-middleware/blob/917abfffa7574340e2b1dfbe6f7dfada45e62324/lib/middleware/validate-request/validate-params.js#L45

mdaehn avatar May 11 '19 03:05 mdaehn

I'm seeing the same behavior on the v3 branch (npm ^3.0.0-alpha.5). For now, had to completely disable the validate middleware

kazazor avatar May 18 '19 00:05 kazazor