express-joi-simple
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "express-joi-simple", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -33,3 +33,2 @@ # Express + Joi + Swagger | ||
// Router will only work if this PR is accepted: https://github.com/expressjs/express/pull/3713#issuecomment-412275954 | ||
app.use('/login', router); | ||
@@ -36,0 +35,0 @@ |
@@ -5,2 +5,3 @@ | ||
import * as fs from 'fs'; | ||
import { regexpToPath } from './helper'; | ||
@@ -28,3 +29,3 @@ export function Doc(app: any, info?: any) { | ||
const joiSchema = routeMehtod.handle('schemaBypass'); | ||
Swagger.swaggerDoc.addNewRoute(joiSchema, middleware.prefix + path, routeMehtod.method) | ||
Swagger.swaggerDoc.addNewRoute(joiSchema, regexpToPath(middleware.regexp) + path, routeMehtod.method) | ||
} | ||
@@ -31,0 +32,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15922
24
232
41