@s1seven/schema-tools-validate
v0.3.16
Published
Tool to validate certificates
Downloads
34
Keywords
Readme
Schema-tools-validate
This repository contains tools to validate certificate(s).
The validate
module is using AJV to validate your certificate(s), it takes as input a certificate path | url | object | object[] from which the RefSchemaUrl
property will be resolved to fetch dependencies located https://schemas.s1seven.com/
such as schema reference, translations, templates ...
Install
npm install @s1seven/schema-tools-validate
Examples
The example wrap the validate
module in a function using process.argv
.
The first argument is the folder path were resides your certificates to validate.
node ./examples/validate.js ./fixtures/en10168
Debugging
Error logging has been implemented in loadLocalCertificates
. To see the errors, run your command with the environment variable DEBUG=schema-tools-validate
.
This library was generated with Nx.
Building
Run nx build validate
to build the library.
Running unit tests
Run nx test validate
to execute the unit tests via Jest.