Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support external (network) schema references #3

Closed
bcherny opened this issue Mar 31, 2016 · 3 comments
Closed

Support external (network) schema references #3

bcherny opened this issue Mar 31, 2016 · 3 comments

Comments

@bcherny
Copy link
Owner

bcherny commented Mar 31, 2016

No description provided.

@simonschllng
Copy link

Until then the error message in index.ts:98 should be changed from:

      throw new Error("reference must start with #");

to

      throw new Error("external references (outside the json-schema file) are not supported");

@robertlong
Copy link

I recently found this package and needed external networked references support. I whipped up this script really quick and it seems to do the job for me.

https://gist.github.com/robertlong/3d5f771a992ff9374d64d92c95952674

It uses json-schema-ref-parser to combine the references into one giant JSON object and then compiles the whole file.

@bcherny
Copy link
Owner Author

bcherny commented Mar 20, 2017

@robertlong I was actually looking at using that package for json-schema-to-ts v2. Will give using it a shot - building ref resolution from scratch is hairier than it seems.

forivall pushed a commit to forivall/json-schema-to-typescript that referenced this issue Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants