Gathering detailed insights and metrics for express-openapi-validator
Gathering detailed insights and metrics for express-openapi-validator
Gathering detailed insights and metrics for express-openapi-validator
Gathering detailed insights and metrics for express-openapi-validator
express-oas-validator
express openapi middleware validator
openapi-data-validator
Automatically validate API requests and responses with OpenAPI 3.
@testm8434/express-openapi-validator
Automatically validate API requests and responses with OpenAPI 3 and Express.
express-openapi-json
Builds an express-compatible router using OpenAPI with request and response validation.
🦋 Auto-validates api requests, responses, and securities using ExpressJS and an OpenAPI 3.1.x or 3.0.x specification
npm install express-openapi-validator
Typescript
Module System
Node Version
NPM Version
TypeScript (99.45%)
JavaScript (0.53%)
Shell (0.02%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
970 Stars
2,061 Commits
224 Forks
18 Watchers
61 Branches
108 Contributors
Updated on Jul 07, 2025
Latest Version
5.5.7
Package Id
express-openapi-validator@5.5.7
Unpacked Size
428.76 kB
Size
80.99 kB
File Count
95
NPM Version
11.3.0
Node Version
24.0.1
Published on
Jun 11, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
14
1
An OpenApi validator for ExpressJS that automatically validates API requests and responses using an OpenAPI 3 specification.
🦋express-openapi-validator is an unopinionated library that integrates with new and existing API applications. express-openapi-validator lets you write code the way you want; it does not impose any coding convention or project layout. Simply, install the validator onto your express app, point it to your OpenAPI 3.0.x or 3.1.x specification, then define and implement routes the way you prefer. See an example.
Features:
Docs:
Express 5 support available in >=v5.5.0
!
OAS 3.1 support available in >=v5.4.0
!
NestJS Koa and Fastify now available! 🚀
1npm install express-openapi-validator
1const OpenApiValidator = require('express-openapi-validator');
or
1import * as OpenApiValidator from 'express-openapi-validator';
1app.use( 2 OpenApiValidator.middleware({ 3 apiSpec: './openapi.yaml', 4 validateRequests: true, // (default) 5 validateResponses: true, // false by default 6 }), 7);
1app.use((err, req, res, next) => { 2 // format error 3 res.status(err.status || 500).json({ 4 message: err.message, 5 errors: err.errors, 6 }); 7});
Important: Ensure express is configured with all relevant body parsers. Body parser middleware functions must be specified prior to any validated routes. See an example.
See the doc for complete documenation
deprecated legacy doc
No vulnerabilities found.
Reason
30 commit(s) and 10 issue activity found in the last 90 days -- score normalized to 10
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 2/25 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
27 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More