json-schema-ref-parser icon indicating copy to clipboard operation
json-schema-ref-parser copied to clipboard

Parse, Resolve, and Dereference JSON Schema $ref pointers in Node and browsers

Results 105 json-schema-ref-parser issues
Sort by recently updated
recently updated
newest added

Hey there, I’m trying to resolve some $refs in a YML model that looks like this: ```yml type: object required: - title properties: identifier: type: string title: $ref: "TranslatableField.yml" example:...

In version 10, the types ResolverOptions and FileInfo are exported. In version 11, they are not. I tried looking at the code to figure it out, but I failed.

When updating to version 10.0.0 I was looking for the changelog, but couldn't find one. I checked the following places: 1. https://github.com/APIDevTools/json-schema-ref-parser/releases 2. https://apitools.dev/json-schema-ref-parser/ 3. If there is any markdown...

### `routes/+page.svelte` ```svelte import { dereference } from "@apidevtools/json-schema-ref-parser"; ``` ### `svelte.config.js` ```js import adapter from '@sveltejs/adapter-auto'; import { vitePreprocess } from '@sveltejs/kit/vite'; /** @type {import('@sveltejs/kit').Config} */ const config =...

The browser is trying to require `fs/promises` in Next.js, failing to compile when using `10.1.0`. Rolling back to `10.0.1` seems to fix it. In `10.0.1`, this library uses `fs`: https://github.com/APIDevTools/json-schema-ref-parser/blob/12cb26a764b975de38143458d06972772609be76/lib/resolvers/file.js#L1...

Version 9.1.0 = OK Version 10.0.1 = BROKEN This is broken on Windows only. In our code, we call this module like this: * `$RefParser.dereference(path.resolve('swagger/index.yaml'), ...` This worked in version...

After updating to `10.1.0` from `9.0.9`, while using `$RefParser.dereference` it throws: `TypeError: (0 , path_1.join) is not a function` error `Node 18.14.0`, `webpack 5`, with `webpack polyfill plugin` ``` "dependencies":...

**Describe the bug** Version: 9.1.2 There is no fallback function for when `excludedPathMatcher` is undefined. **To Reproduce** Call the deference function with no function argument for `excludedPathMatcher`; ``` const dereference...

Hello everyone, unfortunately I noticed that the resolving of absolute paths under windows is not working for me. The code doesn't seem to recognize that a absolute path is entered...

When resolving a reference, if any value en route **including the final value** is `null` then resolution fails. This happens here: https://github.com/APIDevTools/json-schema-ref-parser/blob/a5b3946fbb62683ab69e3747a8893014591726af/lib/pointer.ts#L96 I _think_ (not a JSON schema expert) this...