json-schema-ref-parser
json-schema-ref-parser copied to clipboard
Parse, Resolve, and Dereference JSON Schema $ref pointers in Node and browsers
The example section seems to indicate that a new schema object with be created with the dereferenced values, but in reality, it mutates `mySchema` as well. Either the dereference command...
Hi, the server is configured to redirect all traffic from http to https. Example: [http://v22017084844652188.powersrv.de/schemas/test.json](HTTP address). Calling this ``` parser.dereference("http://v22017084844652188.powersrv.de/schemas/test.json") .then((value) => { console.log("Schema fetched..."); this.parserSchema = value; }) .catch(error...
Hi Great library, thanks for your hard work on this. I was wondering if we could expose something akin to this change: ```diff diff --git a/node_modules/@apidevtools/json-schema-ref-parser/lib/parse.js b/node_modules/@apidevtools/json-schema-ref-parser/lib/parse.js index b9160df..48d56bd 100644...
https://github.com/APIDevTools/json-schema-ref-parser/blob/main/lib/util/url.js#L26 This function needs to be replaced because it is considered [legacy](https://nodejs.org/api/url.html#url_url_resolve_from_to) and leads to unexpected behavior by converting path to lowercase. [Example case](https://replit.com/@neosat55/AnnualOvercookedSandbox#index.js) expected behavior: foo://barTest -> foo://barTest actual:...
I've been trying to use this library in my Svelte App, but for some reason when I try to import $RefParser like so: `import $RefParser from '@apidevtools/json-schema-ref-parser';` My App logs...
could you also provide a ESM build in your package? I'm haveing a frontend without using a bundler, only ESM modules. You could add an extra directory in your nuget,...
Hi all, [@stoplight/json-ref-resolver](https://github.com/stoplightio/json-ref-resolver) offers [options](https://github.com/stoplightio/json-ref-resolver/blob/master/src/types.ts#L62-L70) to skip dereferencing either internal or remote references. I've found this feature to be very useful, but now that project is now deprecated and points...
I'd like to import only the `dereference` method (the other parts of this module should ideally be tree-shaken out), but it seems this is currently not possible because of this...
Given the schema, `mySchema.json`: `{ "properties": { "thing": { "$ref": "./schemas/thing.json" } } }` Where `thing.json` is: `{ "properties": { "inner_thing": { "$ref": "./schemas/inner_thing.json" } } }` Attempting to deference...
Hi, I'm not sure this is a bug with this library, the library that does the call, or my schema. here the stack trace: ``` RangeError: Maximum call stack size...