Gathering detailed insights and metrics for @testm8434/express-openapi-validator
Gathering detailed insights and metrics for @testm8434/express-openapi-validator
Gathering detailed insights and metrics for @testm8434/express-openapi-validator
Gathering detailed insights and metrics for @testm8434/express-openapi-validator
🦋 Auto-validates api requests, responses, and securities using ExpressJS and an OpenAPI 3.1.x or 3.0.x specification
npm install @testm8434/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
6.0.3
Package Id
@testm8434/express-openapi-validator@6.0.3
Unpacked Size
348.73 kB
Size
68.61 kB
File Count
85
NPM Version
8.19.2
Node Version
16.18.1
Published on
Jan 22, 2023
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
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 specification, then define and implement routes the way you prefer. See an example.
Features:
Docs:
NestJS Koa and Fastify now available! 🚀
1npm install express-openapi-validator 2 3## latest beta 4npm install express-openapi-validator@4.14.0-beta.1
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 wiki for complete documenation
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