json-schema-ref-parser
json-schema-ref-parser copied to clipboard
Parse, Resolve, and Dereference JSON Schema $ref pointers in Node and browsers
Possibly corrects #200. This however causes tests to fail as they’re not expecting the references to be resolved. I’m not sure yet how to fix the tests. I thought I’d...
I recently ran into an issue testing some of my more complex schema documents where combination schema $refs cannot be resolved properly if they are part of an "extended" $ref....
Hi Team, I've prepare the ESM version of the library. Can you please review the changes and merge them if OK?
```json { "$ref": "#/definitions/EmailConfig", "$schema": "http://json-schema.org/draft-07/schema#", "definitions": { "EmailConfig": { "additionalProperties": false, "properties": { "adminContact": { "type": "string" } } } } } ``` is valid (in fact is part...
Hello! I ran into a build problem in product mode my project **vite + react** when adding a library [@apidevtools/json-schema-ref-parser](https://www.npmjs.com/package/@apidevtools/json-schema-ref-parser). I create [issue](https://github.com/vitejs/vite/issues/8531) in vite. I added plugins [@esbuild-plugins/node-modules-polyfill](https://www.npmjs.com/package/@esbuild-plugins/node-modules-polyfill) and...
https://stackoverflow.com/questions/49411796/how-do-i-detect-whether-i-am-on-server-on-client-in-next-js
I have an open api spec that is like so ```yaml swagger: "2.0" info: version: 1.0.0 title: Swagger petstore description: A sample API that demonstrates Swagger Express Middleware features consumes:...
It seems that JSON Schemas with references built with URN is not supported, e.g. these schemas: * [github.com/phenopackets/phenopacket-format/schema/condition-schema.json](https://github.com/phenopackets/phenopacket-format/blob/3f4f024b869af5c80314fb12dfe513d80ab30cf9/schema/condition-schema.json) * [github.com/orienteering-oss/iof-orienteering-data-schemas/iof_v3_schema.json](https://github.com/orienteering-oss/iof-orienteering-data-schemas/blob/39d93bed6b8afa9797218fe2c2151ef710da67c3/iof_v3_schema.json) When trying to dereference these, the following error messages are...
We use the Parser to bundle a JSON Schema. In this process references to definitions in `$defs` get encoded to `%24defs`. Example: before bundling ```json "signature": { "$ref": "#/$defs/signature" },...
It'll be easiest to explain with example: I have a folder structure: ``` │ index.js │ ├───test1 │ test1.json │ test11.json │ └───test2 test2.json ``` test1.json contains: ``` { "MyProp":...