
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
json-schema-loader
Advanced tools
This package is part of the doca suite. Please file any issues at the doca repository
npm install json-schema-loader --save
Webpack loader that resolves both internal and external json schema references ($ref
properties). The loader uses json-schema-ref-parser to resolve references. It supports both JSON and YAML. Based on @pr0da/json-schema-loader.
var resolvedSchema = require('json-schema-loader!./schema.json');
Or define it in your webpack.config.js
module: {
loaders: [{
test: /\.json$/,
exclude: /node_modules/,
loader: 'json-schema-loader'
}]
}
var resolvedSchema = require('./schema.json');
useSource: boolean
This loader normally passes the RefParser the resourcePath
, not the source. If you want to chain loaders, make sure to set useSource=true
.
FAQs
Webpack loader that resolves Json Schema references.
The npm package json-schema-loader receives a total of 601 weekly downloads. As such, json-schema-loader popularity was classified as not popular.
We found that json-schema-loader 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.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.