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

Vue cli 3 JSON schema loader with reference and pointer support #192

Closed
mgesmundo opened this issue Aug 23, 2020 · 1 comment
Closed

Vue cli 3 JSON schema loader with reference and pointer support #192

mgesmundo opened this issue Aug 23, 2020 · 1 comment

Comments

@mgesmundo
Copy link

Hello there,
to use this awesome module into a Vue application I created a simple webpack plugin to load all schemas and all references bundling all into a single JSON schema ready to import into a .vue file.

https://gist.github.com/mgesmundo/07d6ea3958ed4c7d19d1161551fa46ca

All the best.

@JamesMessinger
Copy link
Member

Thanks for sharing! That's a great usage of this library.

bgschiller added a commit to urbanopt/urbanopt-geojson-gem that referenced this issue Oct 9, 2020
json-schema-ref-parser doesn't ship with a version compiled for browsers. I
fought for a bit to try and include it in our webpack config, but that didn't
seem to work. Instead, I found an issue APIDevTools/json-schema-ref-parser#192
where someone had turned it into a webpack loader that runs on the schemas at import time.
That seems to have done the trick, and it compiles now.

I also had to change a path for hljs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants