Gathering detailed insights and metrics for @har-sdk/validator
Gathering detailed insights and metrics for @har-sdk/validator
Gathering detailed insights and metrics for @har-sdk/validator
Gathering detailed insights and metrics for @har-sdk/validator
HAR SDK enables Node.js developers to easily work with HAR, convert it from OAS/Swagger and Postman collection, and more.
npm install @har-sdk/validator
Typescript
Module System
Node Version
NPM Version
@har-sdk/oas@2.12.2
Updated on Apr 03, 2025
@har-sdk/openapi-sampler@2.4.2
Updated on Apr 03, 2025
@har-sdk/editor@1.5.14
Updated on Mar 25, 2025
@har-sdk/validator@2.6.1
Updated on Mar 25, 2025
@har-sdk/types@1.1.10
Updated on Mar 25, 2025
@har-sdk/postman@2.4.7
Updated on Mar 25, 2025
TypeScript (98.24%)
JavaScript (1.72%)
Shell (0.04%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
11 Stars
157 Commits
5 Forks
15 Watchers
7 Branches
26 Contributors
Updated on Apr 03, 2025
Latest Version
2.6.1
Package Id
@har-sdk/validator@2.6.1
Unpacked Size
549.13 kB
Size
76.57 kB
File Count
87
NPM Version
10.8.2
Node Version
18.20.7
Published on
Mar 25, 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
6
3
A validator for HAR v1.2 Spec, OpenAPI and Postman documents.
1npm i --save @har-sdk/validator
1import { OpenAPIV2 } from '@har-sdk/types'; 2import { OASValidator, ErrorHumanizer } from '@har-sdk/validator'; 3 4const apiDoc = { 5 swagger: '2.0', 6 host: 'localhost', 7 info: { 8 title: 'Some valid API document' 9 }, 10 paths: {} 11} as OpenAPIV2.Document; 12 13const errors = await new OASValidator().verify(apiDoc as any); 14console.log(errors); 15// [ 16// { 17// "instancePath": "/info", 18// "schemaPath": "#/required", 19// "keyword": "required", 20// "params": { 21// "missingProperty": "version" 22// }, 23// "message": "must have required property 'version'" 24// } 25// ] 26 27const humanizedErrors = await new ErrorHumanizer().humanizeErrors(errors); 28console.log(humanizedErrors); 29// [ 30// { 31// "originalError": { 32// "instancePath": "/info", 33// "schemaPath": "#/required", 34// "keyword": "required", 35// "params": { 36// "missingProperty": "version" 37// }, 38// "message": "must have required property 'version'" 39// }, 40// "message": "the value at /info is missing the required field `version`", 41// "messageParts": [ 42// { 43// "text": "the value at /info", 44// "jsonPointer": "/info" 45// }, 46// { 47// "text": "is missing the required field `version`" 48// } 49// ] 50// } 51// ]
See Error Object
No vulnerabilities found.
Reason
all changesets reviewed
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
dependency not pinned by hash detected -- score normalized to 5
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
16 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