Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
alterschema
Advanced tools
This project implements a language-independent set of formal transformations to automatically transform JSON Schema documents across versions of the specification.
Try the web playground at: https://alterschema.sourcemeta.com
From | To | Type | Status | Description |
---|---|---|---|---|
2019-09 | 2020-12 | Lossless | Full | JSON Schema 2019-09 to JSON Schema 2020-12 |
draft7 | 2019-09 | Lossless | Full | JSON Schema Draft 7 to JSON Schema 2019-09 |
draft6 | draft7 | Lossless | Full | JSON Schema Draft 6 to JSON Schema Draft 7 |
draft4 | draft6 | Lossless | Full | JSON Schema Draft 4 to JSON Schema Draft 6 |
draft3 | draft4 | Lossless | Minimal 1 | JSON Schema Draft 3 to JSON Schema Draft 4 |
Transformations are transitively applied. For example, transforming from
draft6
to 2019-09
implies transforming draft6
to draft7
and draft7
to
2019-09
.
// (1) Install by running "npm install --save alterschema"
const alterschema = require('alterschema')
// (2) alterschema(schema: JSON, from: string, to: string) -> JSON
// Transform the input document `schema` according to the
// `from` and `to` string parameters.
const result = await alterschema({ ... }, '2019-09', '2020-12')
console.log(result)
# (1) Install globally through npm
npm install --global alterschema
# (2) Run the command-line tool
alterschema --from <from> --to <to> path/to/schema.json
We accept contributions to implement alterschema
in any programming language.
To produce an alterschema
implementation, your programming language of choice
must support a JSON Schema 2020-12 validator and a
JSON-e interpreter.
Special thanks to @gregdeniss for curating the initial set of upgrade rules.
This is a heavy work-in-progress. Subscribe to https://github.com/sourcemeta/alterschema/issues/83 for the latest updates. ↩
FAQs
Convert between schema specifications
The npm package alterschema receives a total of 36,768 weekly downloads. As such, alterschema popularity was classified as popular.
We found that alterschema demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.