@s1seven/schema-tools-validate
TypeScript icon, indicating that this package has built-in type declarations

0.3.16 • Public • Published

Schema-tools-validate

npm

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @s1seven/schema-tools-validate

Weekly Downloads

33

Version

0.3.16

License

Apache-2.0

Unpacked Size

28 kB

Total Files

6

Last publish

Collaborators

  • christophbuehler
  • eamon0989
  • s1seven-service
  • stiebitzhofer