Gathering detailed insights and metrics for openapi-schema-validator
Gathering detailed insights and metrics for openapi-schema-validator
Gathering detailed insights and metrics for openapi-schema-validator
Gathering detailed insights and metrics for openapi-schema-validator
@seriousme/openapi-schema-validator
Validate OpenApi specifications against their JSON schema
@apidevtools/swagger-parser
Swagger 2.0 and OpenAPI 3.0 parser and validator for Node and browsers
@readme/openapi-parser
Swagger 2.0 and OpenAPI 3.x parser and validator for Node and browsers
swagger-parser
Swagger 2.0 and OpenAPI 3.0 parser and validator for Node and browsers
A Monorepo of various packages to power OpenAPI in node
npm install openapi-schema-validator
Typescript
Module System
Node Version
NPM Version
98.9
Supply Chain
94.8
Quality
75.7
Maintenance
100
Vulnerability
99.6
License
JavaScript (64.43%)
TypeScript (35.38%)
Shell (0.19%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
918 Stars
1,374 Commits
239 Forks
13 Watchers
228 Branches
114 Contributors
Updated on Jul 10, 2025
Latest Version
12.1.3
Package Id
openapi-schema-validator@12.1.3
Unpacked Size
106.49 kB
Size
20.50 kB
File Count
10
NPM Version
lerna/3.22.1/node@v16.18.0+x64 (linux)
Node Version
16.18.0
Published on
May 24, 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
4
A validator for OpenAPI documents.
v3
v2
(formerly known as Swagger V2)definitions
property of the
provided openapi document.Huge thank you to the gnostic project for building up a 3.0.0 JSON schema.
1var OpenAPISchemaValidator = require('openapi-schema-validator').default; 2var validator = new OpenAPISchemaValidator({ 3 version: 2, 4 // optional 5 extensions: { 6 /* place any properties here to extend the schema. */ 7 } 8}); 9console.log(validator.validate(apiDoc));
version
number openapi document schema version to use (2 or 3).
openapi-2.0.0
(default)openapi-3.0.0
see here for example results.
apiDoc
object is any api document you wish to validate.The MIT License (MIT)
Copyright (c) 2018 Kogo Software LLC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
Found 7/20 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
51 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
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