Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/best-shot/json-schema-ref-loader
json-schema-ref-parser for webpack
https://github.com/best-shot/json-schema-ref-loader
dereference json json-pointer json-schema loader oas openapi ref reference schema swagger webpack webpack-loader
Last synced: about 2 months ago
JSON representation
json-schema-ref-parser for webpack
- Host: GitHub
- URL: https://github.com/best-shot/json-schema-ref-loader
- Owner: best-shot
- License: mit
- Created: 2022-03-15T10:20:34.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-11-07T06:19:11.000Z (3 months ago)
- Last Synced: 2024-11-23T16:03:11.942Z (about 2 months ago)
- Topics: dereference, json, json-pointer, json-schema, loader, oas, openapi, ref, reference, schema, swagger, webpack, webpack-loader
- Language: JavaScript
- Homepage:
- Size: 505 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @best-shot/json-schema-ref-loader
`json-schema-ref-parser` for `webpack`.
[![npm][npm-badge]][npm-url]
[![github][github-badge]][github-url]
![node][node-badge][npm-url]: https://www.npmjs.com/package/@best-shot/json-schema-ref-loader
[npm-badge]: https://img.shields.io/npm/v/@best-shot/json-schema-ref-loader.svg?style=flat-square&logo=npm
[github-url]: https://github.com/best-shot/json-schema-ref-loader
[github-badge]: https://img.shields.io/npm/l/@best-shot/json-schema-ref-loader.svg?style=flat-square&colorB=blue&logo=github
[node-badge]: https://img.shields.io/node/v/@best-shot/json-schema-ref-loader.svg?style=flat-square&colorB=green&logo=node.js## Installation
```bash
npm install @best-shot/json-schema-ref-loader --save-dev
```## Usage
```cjs
// example: webpack.config.cjs
module.exports = {
module: {
rules: [
{
test: /\.(ya?ml|json)$/,
type: 'asset/resource',
loader: '@best-shot/json-schema-ref-loader',
options: {
dereference: false
}
},
{
test: /\.ya?ml$/,
loader: 'yaml-loader'
}
]
}
};
```