express-openapi-validator
Advanced tools
Comparing version 4.14.0-beta.2 to 5.0.0
@@ -29,3 +29,3 @@ "use strict"; | ||
visitApi(ctx) { | ||
var _a; | ||
var _a, _b; | ||
const apiDoc = ctx.getApiDoc(); | ||
@@ -42,3 +42,4 @@ const basePaths = ctx.basePaths; | ||
const pathParams = new Set(); | ||
for (const param of (_a = schema.parameters) !== null && _a !== void 0 ? _a : []) { | ||
const parameters = [...(_a = schema.parameters) !== null && _a !== void 0 ? _a : [], ...(_b = methods.parameters) !== null && _b !== void 0 ? _b : []]; | ||
for (const param of parameters) { | ||
if (param.in === 'path') { | ||
@@ -45,0 +46,0 @@ pathParams.add(param.name); |
@@ -141,2 +141,6 @@ "use strict"; | ||
} | ||
else if (schema.type === 'array' && schema.items) { | ||
const child = new Node(node, schema.items, [...node.path, 'items']); | ||
recurse(node, child, opts); | ||
} | ||
else if (schema.properties) { | ||
@@ -143,0 +147,0 @@ Object.entries(schema.properties).forEach(([id, cschema]) => { |
{ | ||
"name": "express-openapi-validator", | ||
"version": "4.14.0-beta.2", | ||
"version": "5.0.0", | ||
"description": "Automatically validate API requests and responses with OpenAPI 3 and Express.", | ||
@@ -60,3 +60,3 @@ "main": "dist/index.js", | ||
"codacy-coverage": "^3.4.0", | ||
"commitizen": "^4.2.4", | ||
"commitizen": "^4.2.5", | ||
"cookie-parser": "^1.4.6", | ||
@@ -67,3 +67,3 @@ "coveralls": "^3.1.1", | ||
"morgan": "^1.10.0", | ||
"nodemon": "^2.0.15", | ||
"nodemon": "^2.0.20", | ||
"nyc": "^15.1.0", | ||
@@ -70,0 +70,0 @@ "prettier": "^2.5.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
349298
6012
1
5
21