@stoplight/spectral-ref-resolver
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@stoplight/spectral-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 @stoplight/spectral-ref-resolver

# OR

yarn add @stoplight/spectral-ref-resolver

Usage

An example usage of spectral-ref-resolver together with proxy-agent.

import { createHttpAndFileResolver, Resolver } from '@stoplight/spectral-ref-resolver';
import ProxyAgent from import('proxy-agent');

module.exports = createHttpAndFileResolver({ agent: new ProxyAgent(process.env.PROXY) });

Readme

Keywords

none

Package Sidebar

Install

npm i @stoplight/spectral-ref-resolver

Weekly Downloads

474,853

Version

1.0.4

License

Apache-2.0

Unpacked Size

15.2 kB

Total Files

9

Last publish

Collaborators

  • stoplight-devops
  • stoplight-spectral-bot