How ahmadnassri/node-har-validator works
HAR Validator is a small Node.js library for checking HAR objects and individual HAR parts against JSON Schema. A caller uses the Promise API by default or the callback-compatible API; both configure Ajv with har-schema schemas, validate the requested schema, and report validation failures through HARError. The source excerpts show these runtime relationships; the CLI is a separate project, and no CLI implementation is present here.
Main entry points: promise.js Promise API · async.js Callback API · error.js HARError
Components 6
Other components
- Library caller
- Promise API
lib/promise.js - Callback API
lib/async.js - Ajv validator
- HAR schemas
- HARError
lib/error.js
Connections 8
- Library caller → Promise API: uses by default
- Library caller → Callback API: uses callback API
README.md - Promise API → Ajv validator: configures and validates
lib/promise.js - Promise API → HAR schemas: registers schemas
lib/promise.js - Promise API → HARError: creates on failure
lib/promise.js - Callback API → Ajv validator: configures and validates
lib/async.js - Callback API → HAR schemas: registers schemas
lib/async.js - Callback API → HARError: creates on failure
lib/async.js