
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@s1seven/schema-tools
Advanced tools
This repository contains tools to validate certificate(s), generate TS interfaces from a specified schema and generate HTML string from a certificate.
This repository contains tools to validate certificate(s), generate TS interfaces from a specified schema and generate HTML string from a certificate.
All the modules take as input a certificate path | url | object from which the RefSchemaUrl
property will be resolved to fetch dependencies located https://schemas.en10204.io/
such as schema reference, translations, templates ...
npm install @s1seven/schema-tools
The validate
module is using AJV to validate your certificate(s) residing in a specified folder | file | url or by using an JSONSchema or an array of JSONSchema.
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
The generate
module is using json-schema-to-typescript to generate TS interfaces and types using a JSON / OpenAPI schema.
The example wrap the generate
module in a function using process.argv
.
First argument is the schema url to generate from, the second argument is the filepath where interfaces will be saved.
node ./examples/generate-interfaces.js https://schemas.en10204.io/en10168-schemas/v0.0.2-2/schema.json ./certificate.ts
The generateHtml
module is using handlebars and/or mjml to generate HTML string using a JSON schema.
The example wrap the generateHtml
module in a function using process.argv
.
First argument is the certificate path to generate from.
node ./examples/generate-html.js ./fixtures/EN10168/valid_en10168_test.json
FAQs
This repository contains tools to validate certificate(s), generate TS interfaces from a specified schema and generate HTML string from a certificate.
The npm package @s1seven/schema-tools receives a total of 0 weekly downloads. As such, @s1seven/schema-tools popularity was classified as not popular.
We found that @s1seven/schema-tools demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.