oas3-tools
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -14,3 +14,3 @@ 'use strict'; | ||
return (req, res, next) => { | ||
if (!req.openapi || !req.openapi.schema || !req.openapi.schema.parameters) { | ||
if (!req.openapi || !req.openapi.schema) { | ||
next(); | ||
@@ -35,3 +35,3 @@ return; | ||
} | ||
const parameters = req.openapi.schema.parameters; | ||
const parameters = req.openapi.schema.parameters || []; | ||
for (let i = 0; i < parameters.length; i++) { | ||
@@ -38,0 +38,0 @@ const parameter = parameters[i]; |
{ | ||
"name": "oas3-tools", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "Swagger-UI and API Rest Routing for Open API v3.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
5325719