krg7880 / json-schema-generator

Generates draft v4 schema from a local file or a remote JSON url.
MIT License
174 stars 53 forks source link

Elaborated on cli #6

Closed nickyout closed 9 years ago

nickyout commented 9 years ago

Hello. I like the functionality the json-schema-generator tool provides, but I've found its cli to be less intuitive than I am used to. I also tried to npm install -g it but it did not work. So I went and... changed a lot.

And I did not make handy separate commits of it, so you can't really select the parts you like easily. Sorry about that.

I hope you like the change and consider merging it back into your master and making a new npm release. Any remarks are welcome.

krg7880 commented 9 years ago

Excellent! Seems to still work. Thanks for contributing.

nickyout commented 9 years ago

I noticed that despite my addition of pretty-data to package.json, it is still not being installed automatically. Apparently I had to run npm shrinkwrap and commit the new npm-shrinkwrap.json. I also have some other minor things I just found. I'm making another pull request.