@conformyze/lynta-ref-resolver
v0.0.0
Published
This package provides Spectral-compatible bindings for [@stoplight/json-ref-resolver](https://github.com/stoplightio/json-ref-resolver) and [@stoplight/json-ref-readers](https://github.com/stoplightio/json-ref-readers).
Downloads
3
Readme
@conformyze/lynta-ref-resolver
This package provides Spectral-compatible bindings for @stoplight/json-ref-resolver and @stoplight/json-ref-readers.
You shouldn't need to install this package directly unless you want to create a custom JSON refs resolver
Installation
npm install --save @conformyze/lynta-ref-resolver
# OR
yarn add @conformyze/lynta-ref-resolver
Usage
An example usage of lynta-ref-resolver together with proxy-agent.
import { createHttpAndFileResolver, Resolver } from '@conformyze/lynta-ref-resolver';
import ProxyAgent from import('proxy-agent');
module.exports = createHttpAndFileResolver({ agent: new ProxyAgent(process.env.PROXY) });