# json-schema-id-ref-parser

> Resolves and dereferences pointers to schemas with an "id" property

Latest version **0.3.3** (published 2019-07-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install json-schema-id-ref-parser
pnpm add json-schema-id-ref-parser
yarn add json-schema-id-ref-parser
bun add json-schema-id-ref-parser
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.3 |
| Published | 2019-07-08 |
| First published | 2016-10-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 3 |
| Unpacked size | 18.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Emily Marigold Klassen |
| Maintainers | forivall |

## Links

- npm: https://www.npmjs.com/package/json-schema-id-ref-parser
- Repository: https://github.com/forivall/json-schema-id-ref-parser
- Issues: https://github.com/forivall/json-schema-id-ref-parser/issues
- npm.io page: https://npm.io/package/json-schema-id-ref-parser

## Dependencies (3)

- [call-me-maybe](https://npm.io/package/call-me-maybe.md) ^1.0.1
- [refaker-local-id](https://npm.io/package/refaker-local-id.md) ^0.1.0
- [json-schema-ref-parser](https://npm.io/package/json-schema-ref-parser.md) ^3.1.2

## Recent versions

- 0.3.3 (latest) — 2019-07-08
- 0.3.2 — 2018-05-03
- 0.3.1 — 2018-05-03
- 0.3.0 — 2016-10-13
- 0.2.0 — 2016-10-13
- 0.1.0 — 2016-10-13

## README

# json-schema-id-ref-parser

Resolves and dereferences  pointers to schemas with an "id" property

[![build status](https://secure.travis-ci.org/forivall/json-schema-id-ref-parser.svg)](http://travis-ci.org/forivall/json-schema-id-ref-parser)
[![dependency status](https://david-dm.org/forivall/json-schema-id-ref-parser.svg)](https://david-dm.org/forivall/json-schema-id-ref-parser)
[![coverage status](https://coveralls.io/repos/github/forivall/json-schema-id-ref-parser/badge.svg)](https://coveralls.io/github/forivall/json-schema-id-ref-parser)

## Installation

```
npm install --save json-schema-id-ref-parser
```

## Usage

```js
var ramlParser = require('raml-1-parser');
var idRefParser = require('json-schema-id-ref-parser');

module.exports = loadRaml;
function loadRaml(filename, options) {
  return ramlParser.loadApi(filename, options)
  .then((raml) => {
    var ramlJson = raml.toJSON();
    return idRefParser.dereference(ramlJson.schemas)
    .then(idRefParser.stringifySchemas)
    .then((schemas) => {
      ramlJson.schemas = schemas;
      return ramlJson;
    })
    ;
  })
  ;
}
```

## Credits
[Jordan Klassen](https://github.com/forivall/)

## License

ISC

---
_Source: https://npm.io/package/json-schema-id-ref-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
