Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-openapi-validator

Package Overview
Dependencies
Maintainers
1
Versions
281
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 0.41.0 to 0.52.1

dist/middlewares/openapi.multipart.d.ts

2

dist/index.d.ts
import { Application } from 'express';
export interface OpenApiValidatorOpts {
apiSpecPath: string;
multerOpts?: {};
}

@@ -8,4 +9,5 @@ export declare class OpenApiValidator {

private context;
private multerOpts;
constructor(options: OpenApiValidatorOpts);
install(app: Application): void;
}

3

dist/index.js

@@ -12,2 +12,3 @@ "use strict";

throw ono_1.default('apiSpecPath required');
this.multerOpts = options.multerOpts;
const openApiContext = new openapi_context_1.OpenApiContext({ apiDoc: options.apiSpecPath });

@@ -38,3 +39,3 @@ const opts = {

}
app.use(middlewares.applyOpenApiMetadata(this.context), middlewares.validateRequest({
app.use(middlewares.applyOpenApiMetadata(this.context), middlewares.multipart(this.context, this.multerOpts), middlewares.validateRequest({
apiDoc: this.context.apiDoc,

@@ -41,0 +42,0 @@ loggingKey,

export { applyOpenApiMetadata } from './openapi.metadata';
export { validateRequest } from './openapi.request.validator';
export { multipart } from './openapi.multipart';

@@ -7,2 +7,4 @@ "use strict";

exports.validateRequest = openapi_request_validator_1.validateRequest;
var openapi_multipart_1 = require("./openapi.multipart");
exports.multipart = openapi_multipart_1.multipart;
//# sourceMappingURL=index.js.map
{
"name": "express-openapi-validator",
"version": "0.41.0",
"version": "0.52.1",
"description": "",

@@ -29,2 +29,3 @@ "main": "dist/index.js",

"lodash": "^4.17.11",
"multer": "^1.4.1",
"ono": "^5.0.1",

@@ -31,0 +32,0 @@ "openapi-request-coercer": "^2.3.0",

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