Socket
Socket
Sign inDemoInstall

express-openapi-validator

Package Overview
Dependencies
Maintainers
1
Versions
278
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-openapi-validator - npm Package Compare versions

Comparing version 4.14.0-beta.2 to 5.0.0

5

dist/framework/openapi.spec.loader.js

@@ -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);

4

dist/middlewares/parsers/schema.preprocessor.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc