@stoplight/json-ref-readers

WebJar for @stoplight/json-ref-readers

License

License

Apache-2.0
Categories

Categories

JSON Data
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

stoplight__json-ref-readers
Last Version

Last Version

1.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

@stoplight/json-ref-readers
WebJar for @stoplight/json-ref-readers
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/stoplightio/json-ref-readers

Download stoplight__json-ref-readers

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/stoplight__json-ref-readers/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>stoplight__json-ref-readers</artifactId>
    <version>1.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/stoplight__json-ref-readers/
implementation 'org.webjars.npm:stoplight__json-ref-readers:1.2.1'
// https://jarcasting.com/artifacts/org.webjars.npm/stoplight__json-ref-readers/
implementation ("org.webjars.npm:stoplight__json-ref-readers:1.2.1")
'org.webjars.npm:stoplight__json-ref-readers:jar:1.2.1'
<dependency org="org.webjars.npm" name="stoplight__json-ref-readers" rev="1.2.1">
  <artifact name="stoplight__json-ref-readers" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='stoplight__json-ref-readers', version='1.2.1')
)
libraryDependencies += "org.webjars.npm" % "stoplight__json-ref-readers" % "1.2.1"
[org.webjars.npm/stoplight__json-ref-readers "1.2.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : node-fetch jar [2.6.0,3)

Project Modules

There are no modules declared in this project.

json-ref-readers

Set of utilities for reading external json references.

Installation

yarn add @stoplight/json-ref-readers

Usage

The library exports two functions: resolveHttp and resolveFile. Both take uri.URI and resolve to a string containing requested resource.

import { Resolver } from '@stoplight/json-ref-resolver';
import { resolveFile, resolveHttp } from '@stoplight/json-ref-readers';

const httpAndFileResolver = new Resolver({
  resolvers: {
    https: { resolve: resolveHttp },
    http: { resolve: resolveHttp },
    file: { resolve: resolveFile },
  },
});
org.webjars.npm

Stoplight

Stoplight leverages your OpenAPI documents to drive the entire API development process

Versions

Version
1.2.1