JSON::SchemaGenerator
A very basic json-schema generator. Currently only has draft-03 support. The tests, including draft-04 tests, are in the json-schema-kata submodule.
Installation
Add this line to your application's Gemfile:
gem 'json-schema-generator'
And then execute:
$ bundle
Or install it yourself as:
$ gem install json-schema-generator
Usage
JSON::SchemaGenerator.generate name, data, version
e.g.
JSON::SchemaGenerator.generate 'sample_file.json', File.read('sample_file.json'), 'draft3'
Testing
The tests are actually in a reusable submodule of platform agnostic json-schema tests.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
TODO: Write a gem description
Installation
Add this line to your application's Gemfile:
gem 'json-schema-generator'
And then execute:
$ bundle
Or install it yourself as:
$ gem install json-schema-generator
Usage
TODO: Write usage instructions here
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
TODO: Write a gem description
Installation
Add this line to your application's Gemfile:
gem 'json-schema-generator'
And then execute:
$ bundle
Or install it yourself as:
$ gem install json-schema-generator
Usage
TODO: Write usage instructions here
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request TODO: Write usage instructions here
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request