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

Bundle/package directory #64

Closed
brettstack opened this issue Dec 14, 2017 · 1 comment
Closed

Bundle/package directory #64

brettstack opened this issue Dec 14, 2017 · 1 comment

Comments

@brettstack
Copy link

The bundle method lets us pass in a file which then bundles all referenced files into a single schema and converts to local $refs (though I'm encountering an issue with this which I think is the same as #62).

How difficult would it be to have something similar, but allow passing in a directory which merges all schemas and then converts to local $refs?

I could merge all files into a single JSON quite easily; the challenging part would be converting the $refs to their local equivalent.

@JamesMessinger
Copy link
Member

Hi @brettstack. Couldn't you just create a file that references every file in the directory, and then pass that file to the bundle() method?

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

2 participants